Skip to content

Commit 540a2b5

Browse files
committed
Setup required reviews
1 parent 1b92709 commit 540a2b5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/review.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Required Reviews
2+
on:
3+
pull_request_review:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
check:
9+
name: Checking required reviews
10+
runs-on: ubuntu-latest
11+
permissions: {}
12+
13+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
14+
15+
steps:
16+
- name: Generate a token
17+
id: generate-token
18+
uses: actions/create-github-app-token@v2
19+
with:
20+
app-id: ${{ secrets.REQUIRED_REVIEWS_APP_ID }}
21+
private-key: ${{ secrets.REQUIRED_REVIEWS_APP_KEY }}
22+
- uses: Automattic/action-required-review@v4.1.1
23+
with:
24+
token: ${{ steps.generate-token.outputs.token }}
25+
status: Required Reviews
26+
requirements: |
27+
- name: Cloud provider files
28+
paths:
29+
- '.github/'
30+
- 'terraform/'
31+
teams:
32+
- "officers"
33+
- "infra-chairs"
34+
- name: Base Requirement
35+
paths: unmatched
36+
teams:
37+
- "officers"
38+
- "infra-chairs"
39+
- "infra-leads"

0 commit comments

Comments
 (0)