-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pullapprove.yml
44 lines (35 loc) · 1.21 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
version: 3
pullapprove_conditions:
- condition: "'*travis*' in statuses.successful"
unmet_status: failure
explanation: "Tests must pass before review starts"
# DISABLED: pullapprove v3 has not yet added support for "Githubb Checks" which are how Github Apps return status of tests
# In the meantime we will enforce these tests within Github itself
#- condition: "'*jenkins*' in statuses.successful"
# unmet_status: failure
# explanation: "Tests must pass before review starts"
groups:
pullapprove-admins:
conditions:
- "'.pullapprove.yml' in files"
reviews:
required: 1
author_value: 1 # if author in group reduce number of approvals needed by this number
reviewers:
users:
- rhiananthony
teams:
- secops
software-review:
reviews:
required: 2
author_value: 1 # if author in group reduce number of approvals needed by this number
request_order: random # reviewers will be chosen in a random order
reviewers:
teams:
- pipelines-software-engineers-hornet
- pipelines-devops
notifications:
- when: pullapprove.approved
if: "author_association == 'CONTRIBUTOR'"
comment: "The review is completed. Thanks @{{ author }}."