GitHub Action to check if the PR has been approved.
Number of minimum approvals required, default to 1
.
GitHub token to check the pull request.
name: Require Approval
on:
- pull_request
- pull_request_review
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check approvals
uses: marierigal/[email protected]
with:
approvals: 1
token: ${{ secrets.GITHUB_TOKEN }}