-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pullapprove.yml
54 lines (44 loc) · 1.5 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
52
53
54
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
# computational-review:
# reviews:
# required: 1
# 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-computational-biologists
notifications:
- when: pullapprove.approved
if: "author_association == 'CONTRIBUTOR'"
comment: "The review is completed. Thanks @{{ author }}."