-
Notifications
You must be signed in to change notification settings - Fork 683
26 lines (24 loc) · 886 Bytes
/
required-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: "Required review check"
on:
# pull_request_target is suggested for projects where pull requests will be
# made from forked repositories. If pull_request is used in these cases,
# the github token will not have sufficient permission to update the PR.
pull_request_review:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read # to read changed files
pull-requests: write # to read/write PR reviewers
statuses: write # to add the status pass/fail
jobs:
check:
name: Checking required reviews
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Automattic/action-required-review@bc37113f38a3d10969c1a2a6eadbb53cb2360156
with:
token: ${{ github.token }}
requirements-file: .github/required-review.yml
request-reviews: true
status: Required review