workflow_run_approvals
Overview
Name | workflow_run_approvals |
Type | Resource |
Id | github.actions.workflow_run_approvals |
Fields
Name | Datatype | Description |
---|---|---|
comment | string | The comment submitted with the deployment review |
environments | array | The list of environments that were approved or rejected |
state | string | Whether deployment to the environment(s) was approved or rejected |
user | object | Simple User |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_reviews_for_run | SELECT | owner, repo, run_id | Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint. |
approve_workflow_run | EXEC | owner, repo, run_id | Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see "Approving workflow runs from public forks." You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the actions:write permission to use this endpoint. |