[PR #1524] [MERGED] Input #1984

Closed
opened 2026-03-01 21:53:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1524
Author: @shubhbapna
Created: 12/19/2022
Status: Merged
Merged: 1/13/2023
Merged by: @mergify[bot]

Base: masterHead: input


📝 Commits (4)

📊 Changes

6 files changed (+96 additions, -11 deletions)

View changed files

📝 README.md (+11 -1)
📝 cmd/input.go (+7 -0)
📝 cmd/root.go (+24 -10)
📝 pkg/runner/runner.go (+11 -0)
📝 pkg/runner/runner_test.go (+22 -0)
pkg/runner/testdata/input-from-cli/input.yml (+21 -0)

📄 Description

Fixes #1021

Added 2 flags --input and --input-file to manually pass inputs

You will notice that in the New function for runner, I only set the inputs if event payload was not defined. IMO, if the user is passing a payload, then they can set their input in that json file itself rather than passing it separately using the flags.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1524 **Author:** [@shubhbapna](https://github.com/shubhbapna) **Created:** 12/19/2022 **Status:** ✅ Merged **Merged:** 1/13/2023 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `input` --- ### 📝 Commits (4) - [`77f09b9`](https://github.com/nektos/act/commit/77f09b912c0bc6acc13fad5da0ed86a84f679414) added input flags - [`5ddc1cf`](https://github.com/nektos/act/commit/5ddc1cf79832725e8ab3c6ceebba58ee88fceabe) added input as part of the action event and added test cases - [`6f7c7ec`](https://github.com/nektos/act/commit/6f7c7ec13f573aa60e2ffc34186d4280b10925c9) updated readme - [`dcfa663`](https://github.com/nektos/act/commit/dcfa663ad7eaaa91c6dbf964b727d774983caa36) Merge branch 'master' of https://github.com/nektos/act into pr/shubhbapna/1524 ### 📊 Changes **6 files changed** (+96 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+11 -1) 📝 `cmd/input.go` (+7 -0) 📝 `cmd/root.go` (+24 -10) 📝 `pkg/runner/runner.go` (+11 -0) 📝 `pkg/runner/runner_test.go` (+22 -0) ➕ `pkg/runner/testdata/input-from-cli/input.yml` (+21 -0) </details> ### 📄 Description Fixes #1021 Added 2 flags `--input` and `--input-file` to manually pass inputs You will notice that in the `New` function for `runner`, I only set the inputs if event payload was not defined. IMO, if the user is passing a payload, then they can set their input in that json file itself rather than passing it separately using the flags. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1984
No description provided.