forked from HumanCellAtlas/metadata-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pullapprove.yml
190 lines (177 loc) · 4.74 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
version: 3
# The following line breaks the yml - 404 page not found error
# extends: https://api.github.com/repos/example/pullapprove-config/contents/.pullapprove.yml
# If this conditions are not met, it will throw the 'unmet_status'.
pullapprove_conditions:
- condition: "not any(['release' in labels, 'hotfix' in labels])"
unmet_status: success
explanation: "Releases, security updates and hotfixes are allowed to merge in integration, staging and/or master"
- condition: "base.ref == 'staging' or '[Snyk]' in title"
unmet_status: failure
explanation: "No PRs from unknown branches can be merged into master"
- condition: "'on hold' not in labels"
unmet_status: pending
explanation: "PR review is on hold"
- condition: "'*[tT]ravis*' in check_runs.success"
unmet_status: failure
explanation: "Travis CI tests must pass before review starts"
notifications:
- when: pull_request.opened
if: "author_association == 'CONTRIBUTOR'" # Only contributing authors get this message
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'" # Only contributing authors get this message
comment: "The review is completed. Thanks @{{ author }}!"
groups:
snyk-security-patches:
conditions:
- "'[Snyk]' in title"
- "'Security' not in labels"
reviewers:
users:
- ESapenaVentura
- aaclan-ebi
- jacobwindsor
- yusra-haider
reviews:
required: 1
request_order: shuffle
azul:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- hannes-ucsc
reviews:
required: 1
request: 1
request_order: shuffle
browser:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- NoopDog
reviews:
required: 1
request: 1
request_order: shuffle
pipelines:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- kbergin
reviews:
required: 1
request: 1
request_order: shuffle
data_import:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- aherbst-broad
- JeffKorte
- danicham
reviews:
required: 1
request: 1
request_order: shuffle
tdr:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- ruchim
reviews:
required: 1
request: 1
request_order: shuffle
ingest-devs:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'master'"
- "'content' in labels"
reviewers:
users:
- aaclan-ebi
- jacobwindsor
- yusra-haider
reviews:
required: 1
request: 1
request_order: shuffle
metadata-updates-major-minor: # group name
conditions: # the group is activated when all of these statements are true
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'staging'"
- "'major' in body or 'minor' in body" # major or minor change is indicated in body of PR
- "'content' in labels"
reviewers: # people who can approve for this group
users:
- mshadbolt
- ESapenaVentura
- rays22
- rays22
- ami-day
- ami-day
- Wkt8
- Wkt8
- mshadbolt
- willrockout
- ESapenaVentura
- rachadele
reviews: # settings for approval and reviewer selection
required: 2
request_order: shuffle # reviewers will be chosen in a random order
metadata-updates-patch:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'develop'"
- "'patch' in body" # patch change is indicated in body of PR
- "'content' in labels"
reviewers:
users:
- mshadbolt
- ESapenaVentura
- rays22
- rays22
- ami-day
- ami-day
- Wkt8
- Wkt8
- mshadbolt
- willrockout
- ESapenaVentura
- rachadele
reviews:
required: 1
request_order: shuffle
code-review:
conditions:
- "'*[Tt]ravis*' in check_runs.successful"
- "base.ref == 'develop'"
- "'*.py' in files or '*.js' in files or '*.yml' in files"
reviewers:
users:
- mshadbolt
- ESapenaVentura
- rays22
- ami-day
- Wkt8
reviews:
required: 1
request_order: shuffle