trozz/Approve PR via reaction
Gate a job on an approving reaction from listed approvers (users or org teams), keyed to the PR head commit SHA.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| approvers | Comma or whitespace separated approvers allowed to approve. Each entry is a GitHub username or an org team as org/slug (a leading @ is optional). Team members are resolved via the API, which requires the token to have read:org scope. | yes | — |
| label | Optional identifier for what is being approved. Shown in the comment and used (with the commit SHA) to key the approval comment. Set distinct labels when running more than one approval gate on the same PR so their comments do not collide. | no | "" |
| message | Optional free text shown near the top of the approval comment. | no | "" |
| approve-reaction | Reaction that counts as approval. One of: +1, -1, laugh, confused, heart, hooray, rocket, eyes. | no | +1 |
| reject-reaction | Reaction that counts as rejection. One of: +1, -1, laugh, confused, heart, hooray, rocket, eyes. Must differ from approve-reaction. | no | -1 |
| min-approvals | Minimum number of distinct approver approval reactions required. | no | 1 |
| timeout-minutes | Minutes to wait for an approval reaction before failing. | no | 5 |
| poll-seconds | How often to poll the approval comment for reactions. | no | 30 |
| token | GitHub token used to comment and read reactions. Resolving org team members requires a token with read:org scope (a PAT or a GitHub App installation token, e.g. from actions/create-github-app-token); the default GITHUB_TOKEN cannot read team membership. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| approved-by | Comma separated logins of the approvers who approved (empty if not approved). |