actions-marketplace-validations/GitHub API exec action
Executes commands on with GitHub's API.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Command to execute, (e.g: `pulls.create`), see https://octokit.github.io/rest.js/ for available commands | yes | — |
| payload | The payload to send along with the command, see https://octokit.github.io/rest.js/ for structure | — | {} |
| withRepo | Whether we should include the current repo information (`context.repo`) to the aforementioned payload | — | false |
| resultPath | The path to obtain from the result, if needed. i.e.: labels.0.id, if missing, the output is the whole json, which you can later obtain via the [steps context](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#steps-context) and parse using tools such as jq | — | — |
Outputs
| name | description |
|---|---|
| result | The result of the API call, optionally scoped to resultPath, if any |