generated from Resnovas/workflow-mastermind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pullapprove.yml
51 lines (47 loc) · 1.68 KB
/
.pullapprove.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: 3
pullapprove_conditions:
- condition: "base.ref == 'master'"
unmet_status: success
explanation: 'Review not required unless merging to master'
- condition: "body and '- [ ]' not in body"
unmet_status: pending
explanation: 'Please finish all the tasks first (must have PR body)'
- condition: "'security fix' not in labels"
notifications:
- when: pull_request.opened
if: "author_association == 'FIRST_TIME_CONTRIBUTOR'"
comment: |
Hey @{{ author }}, thanks for the PR! The review will start once the tests and CI checks have passed. If they don't, please review the logs and try to fix the issues (ask for help if you can't figure it out).
A reviewer will be assigned once the tests arepassing and they'll walk you through getting the PR finished and merged.
- when: pull_request.opened
if: "author_association == 'CONTRIBUTOR'"
comment: |
Hey @{{ author }}, thanks for the PR! The review will start once the tests and CI checks have passed.
- when: pullapprove.approved
if: "author_association == 'CONTRIBUTOR'"
comment: "The review is completed. Thanks @{{ author }}, we'll take it from here."
groups:
# Global team for reviewing code - Can override other groups to do instant pulls
global:
type: optional
reviewers:
teams:
- admins
reviews:
request: 0
required: 1
reviewed_for: required
# All public reviews are marked as optional
public:
type: optional
reviews:
required: 1
# Changing this file requires ADMIN approval
pullapprove:
conditions:
- "'.pullapprove.yml' in files"
reviewers:
teams:
- admins
reviews:
required: 1