Approved by all reviewers.
Create .github/workflows/unanimously-approved.yml
.
name: Unanimously Approved
on:
pull_request:
types: [opened, reopened, synchronize, review_requested, review_request_removed]
pull_request_review:
types: [submitted, dismissed]
jobs:
unanimously-approved:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: snow-actions/[email protected]
Add review passing
status to branch protection rules.
(unanimously-approved
status always success because each event creates status and outdated status prevents merge.)
See ci.yml
ubuntu-*
windows-*
macos-*
self-hosted
pull_request
pull_request_review
- ✔️ Success when all reviewers approve
- ❌ Fail when some reviewers do not approve
- ❌ Fail when there is no reviewers
Optional.
See action.yml