op5dev/Require Team Approval
Require N number of PR approvals from a GitHub team. Enforce pre-merge PR checks more explicitly than CODEOWNERS file.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| approvals | Count of approvals required (e.g., 1). | no | 1 |
| pr-number | Pull request number (e.g., 42). | no | ${{ github.event.number || github.event.issue.number || github.event.pull_request.number }} |
| team | Team whose approval is required (e.g., qa-team). | yes | — |
| token | GitHub access token with 'read:org' scope (e.g., secrets.CI_PAT). | yes | — |
Outputs
| name | description |
|---|---|
| pr-approvals | List of approvals on the pull request. |
| pr-approvals-count | Count of approvals on the pull request. |
| team-approvals | List of approvals from the team. |
| team-approvals-count | Count of approvals from the team. |
| team-members | List of team members. |
| team-members-count | Count of team members. |