Skip to content

Commit ee26195

Browse files
kpumukJens-G
authored andcommitted
Fix and expand mergeable label mappings
1 parent 5ff0204 commit ee26195

File tree

1 file changed

+116
-22
lines changed

1 file changed

+116
-22
lines changed

.github/mergeable.yml

Lines changed: 116 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,149 @@
11
version: 2
22
mergeable:
33
- when: pull_request.*
4-
name: Add 'c_glib' label to PR if changeset includes changes to the lib/c_glib or test/c_glib directories
4+
name: Add 'c_glib' label to PR if changeset includes changes to the lib/c_glib, test/c_glib, or tutorial/c_glib directories
55
validate:
66
- do: changeset
77
or:
88
- must_include:
99
regex: 'lib/c_glib/.*'
1010
- must_include:
1111
regex: 'test/c_glib/.*'
12+
- must_include:
13+
regex: 'tutorial/c_glib/.*'
1214
pass:
1315
- do: labels
1416
labels: ['c_glib']
1517
mode: 'add'
1618

1719
- when: pull_request.*
18-
name: Add 'c++' label to PR if changeset includes changes to the lib/cpp or test/cpp directories
20+
name: Add 'c++' label to PR if changeset includes changes to the lib/cpp, test/cpp, or tutorial/cpp directories
1921
validate:
2022
- do: changeset
2123
or:
2224
- must_include:
2325
regex: 'lib/cpp/.*'
2426
- must_include:
2527
regex: 'test/cpp/.*'
28+
- must_include:
29+
regex: 'tutorial/cpp/.*'
2630
pass:
2731
- do: labels
2832
labels: ['c++']
2933
mode: 'add'
3034

3135
- when: pull_request.*
32-
name: Add 'dart' label to PR if changeset includes changes to the lib/dart or test/dart directories
36+
name: Add 'dart' label to PR if changeset includes changes to the lib/dart, test/dart, or tutorial/dart directories
3337
validate:
3438
- do: changeset
3539
or:
3640
- must_include:
3741
regex: 'lib/dart/.*'
3842
- must_include:
3943
regex: 'test/dart/.*'
44+
- must_include:
45+
regex: 'tutorial/dart/.*'
4046
pass:
4147
- do: labels
4248
labels: ['dart']
4349
mode: 'add'
4450

4551
- when: pull_request.*
46-
name: Add 'delphi' label to PR if changeset includes changes to the lib/delphi or test/delphi directories
52+
name: Add 'delphi' label to PR if changeset includes changes to the lib/delphi, test/delphi, or tutorial/delphi directories
4753
validate:
4854
- do: changeset
4955
or:
5056
- must_include:
5157
regex: 'lib/delphi/.*'
5258
- must_include:
5359
regex: 'test/delphi/.*'
60+
- must_include:
61+
regex: 'tutorial/delphi/.*'
5462
pass:
5563
- do: labels
5664
labels: ['delphi']
5765
mode: 'add'
5866

5967
- when: pull_request.*
60-
name: Add 'erlang' label to PR if changeset includes changes to the lib/erl or test/erl directories
68+
name: Add 'erlang' label to PR if changeset includes changes to the lib/erl, test/erl, or tutorial/erl directories
6169
validate:
6270
- do: changeset
6371
or:
6472
- must_include:
6573
regex: 'lib/erl/.*'
6674
- must_include:
6775
regex: 'test/erl/.*'
76+
- must_include:
77+
regex: 'tutorial/erl/.*'
6878
pass:
6979
- do: labels
7080
labels: ['erlang']
7181
mode: 'add'
7282

7383
- when: pull_request.*
74-
name: Add 'golang' label to PR if changeset includes changes to the lib/go or test/go directories
84+
name: Add 'golang' label to PR if changeset includes changes to the lib/go, test/go, or tutorial/go directories
7585
validate:
7686
- do: changeset
7787
or:
7888
- must_include:
7989
regex: 'lib/go/.*'
8090
- must_include:
8191
regex: 'test/go/.*'
92+
- must_include:
93+
regex: 'tutorial/go/.*'
8294
pass:
8395
- do: labels
8496
labels: ['golang']
8597
mode: 'add'
8698

8799
- when: pull_request.*
88-
name: Add 'haxe' label to PR if changeset includes changes to the lib/haxe or test/haxe directories
100+
name: Add 'haxe' label to PR if changeset includes changes to the lib/haxe, test/haxe, or tutorial/haxe directories
89101
validate:
90102
- do: changeset
91103
or:
92104
- must_include:
93105
regex: 'lib/haxe/.*'
94106
- must_include:
95107
regex: 'test/haxe/.*'
108+
- must_include:
109+
regex: 'tutorial/haxe/.*'
96110
pass:
97111
- do: labels
98112
labels: ['haxe']
99113
mode: 'add'
100114

101115
- when: pull_request.*
102-
name: Add 'java' label to PR if changeset includes changes to the lib/java or test/java directories
116+
name: Add 'java' label to PR if changeset includes changes to the lib/java, lib/javame, or tutorial/java directories
103117
validate:
104118
- do: changeset
105119
or:
106120
- must_include:
107121
regex: 'lib/java/.*'
108122
- must_include:
109123
regex: 'lib/javame/.*'
124+
- must_include:
125+
regex: 'tutorial/java/.*'
110126
pass:
111127
- do: labels
112128
labels: ['java']
113129
mode: 'add'
114130

115131
- when: pull_request.*
116-
name: Add 'javascript' label to PR if changeset includes changes to the lib/js or test/js directories
132+
name: Add 'javascript' label to PR if changeset includes changes to the lib/js or tutorial/js directories
117133
validate:
118134
- do: changeset
119135
or:
120136
- must_include:
121137
regex: 'lib/js/.*'
138+
- must_include:
139+
regex: 'tutorial/js/.*'
122140
pass:
123141
- do: labels
124142
labels: ['javascript']
125143
mode: 'add'
126144

127145
- when: pull_request.*
128-
name: Add 'json' label to PR if changeset includes changes to the lib/json or test/json directories
146+
name: Add 'json' label to PR if changeset includes changes to the lib/json directory
129147
validate:
130148
- do: changeset
131149
or:
@@ -137,7 +155,7 @@ mergeable:
137155
mode: 'add'
138156

139157
- when: pull_request.*
140-
name: Add 'kotlin' label to PR if changeset includes changes to the lib/kotlin or test/kotlin directories
158+
name: Add 'kotlin' label to PR if changeset includes changes to the lib/kotlin directory
141159
validate:
142160
- do: changeset
143161
or:
@@ -163,87 +181,99 @@ mergeable:
163181
mode: 'add'
164182

165183
- when: pull_request.*
166-
name: Add 'c#' label to PR if changeset includes changes to the lib/netstd or test/netstd directories
184+
name: Add 'c#' label to PR if changeset includes changes to the lib/netstd, test/netstd, or tutorial/netstd directories
167185
validate:
168186
- do: changeset
169187
or:
170188
- must_include:
171189
regex: 'lib/netstd/.*'
172190
- must_include:
173191
regex: 'test/netstd/.*'
192+
- must_include:
193+
regex: 'tutorial/netstd/.*'
174194
pass:
175195
- do: labels
176196
labels: ['c#']
177197
mode: 'add'
178198

179199
- when: pull_request.*
180-
name: Add 'nodejs' label to PR if changeset includes changes to the lib/nodejs or test/nodejs directories
200+
name: Add 'nodejs' label to PR if changeset includes changes to the lib/nodejs or tutorial/nodejs directories
181201
validate:
182202
- do: changeset
183203
or:
184204
- must_include:
185205
regex: 'lib/nodejs/.*'
206+
- must_include:
207+
regex: 'tutorial/nodejs/.*'
186208
pass:
187209
- do: labels
188210
labels: ['nodejs']
189211
mode: 'add'
190212

191213
- when: pull_request.*
192-
name: Add 'typescript' label to PR if changeset includes changes to the lib/nodets or test/nodets directories
214+
name: Add 'typescript' label to PR if changeset includes changes to the lib/nodets or lib/ts directories
193215
validate:
194216
- do: changeset
195217
or:
196218
- must_include:
197219
regex: 'lib/nodets/.*'
220+
- must_include:
221+
regex: 'lib/ts/.*'
198222
pass:
199223
- do: labels
200224
labels: ['typescript']
201225
mode: 'add'
202226

203227
- when: pull_request.*
204-
name: Add 'ocaml' label to PR if changeset includes changes to the lib/ocaml or test/ocaml directories
228+
name: Add 'ocaml' label to PR if changeset includes changes to the lib/ocaml, test/ocaml, or tutorial/ocaml directories
205229
validate:
206230
- do: changeset
207231
or:
208232
- must_include:
209233
regex: 'lib/ocaml/.*'
210234
- must_include:
211235
regex: 'test/ocaml/.*'
236+
- must_include:
237+
regex: 'tutorial/ocaml/.*'
212238
pass:
213239
- do: labels
214240
labels: ['ocaml']
215241
mode: 'add'
216242

217243
- when: pull_request.*
218-
name: Add 'perl' label to PR if changeset includes changes to the lib/perl or test/perl directories
244+
name: Add 'perl' label to PR if changeset includes changes to the lib/perl, test/perl, or tutorial/perl directories
219245
validate:
220246
- do: changeset
221247
or:
222248
- must_include:
223249
regex: 'lib/perl/.*'
224250
- must_include:
225251
regex: 'test/perl/.*'
252+
- must_include:
253+
regex: 'tutorial/perl/.*'
226254
pass:
227255
- do: labels
228256
labels: ['perl']
229257
mode: 'add'
230258

231259
- when: pull_request.*
232-
name: Add 'php' label to PR if changeset includes changes to the lib/php or test/php directories
260+
name: Add 'php' label to PR if changeset includes changes to the lib/php, test/php, or tutorial/php directories
233261
validate:
234262
- do: changeset
235263
or:
236264
- must_include:
237265
regex: 'lib/php/.*'
238266
- must_include:
239267
regex: 'test/php/.*'
268+
- must_include:
269+
regex: 'tutorial/php/.*'
240270
pass:
241271
- do: labels
242272
labels: ['php']
243273
mode: 'add'
244274

245275
- when: pull_request.*
246-
name: Add 'python' label to PR if changeset includes changes to the lib/py or test/py directories
276+
name: Add 'python' label to PR if changeset includes changes to the lib/py, test/py, test/py.tornado, test/py.twisted, tutorial/py, tutorial/py.tornado, or tutorial/py.twisted directories
247277
validate:
248278
- do: changeset
249279
or:
@@ -255,48 +285,60 @@ mergeable:
255285
regex: 'test/py.tornado/.*'
256286
- must_include:
257287
regex: 'test/py.twisted/.*'
288+
- must_include:
289+
regex: 'tutorial/py/.*'
290+
- must_include:
291+
regex: 'tutorial/py.tornado/.*'
292+
- must_include:
293+
regex: 'tutorial/py.twisted/.*'
258294
pass:
259295
- do: labels
260296
labels: ['python']
261297
mode: 'add'
262298

263299
- when: pull_request.*
264-
name: Add 'ruby' label to PR if changeset includes changes to the lib/rb or test/rb directories
300+
name: Add 'ruby' label to PR if changeset includes changes to the lib/rb, test/rb, or tutorial/rb directories
265301
validate:
266302
- do: changeset
267303
or:
268304
- must_include:
269305
regex: 'lib/rb/.*'
270306
- must_include:
271307
regex: 'test/rb/.*'
308+
- must_include:
309+
regex: 'tutorial/rb/.*'
272310
pass:
273311
- do: labels
274312
labels: ['ruby']
275313
mode: 'add'
276314

277315
- when: pull_request.*
278-
name: Add 'rust' label to PR if changeset includes changes to the lib/rs or test/rs directories
316+
name: Add 'rust' label to PR if changeset includes changes to the lib/rs, test/rs, or tutorial/rs directories
279317
validate:
280318
- do: changeset
281319
or:
282320
- must_include:
283321
regex: 'lib/rs/.*'
284322
- must_include:
285323
regex: 'test/rs/.*'
324+
- must_include:
325+
regex: 'tutorial/rs/.*'
286326
pass:
287327
- do: labels
288-
labels: ['ruby']
328+
labels: ['rust']
289329
mode: 'add'
290330

291331
- when: pull_request.*
292-
name: Add 'swift' label to PR if changeset includes changes to the lib/swift or test/swift directories
332+
name: Add 'swift' label to PR if changeset includes changes to the lib/swift, test/swift, or tutorial/swift directories
293333
validate:
294334
- do: changeset
295335
or:
296336
- must_include:
297337
regex: 'lib/swift/.*'
298338
- must_include:
299339
regex: 'test/swift/.*'
340+
- must_include:
341+
regex: 'tutorial/swift/.*'
300342
pass:
301343
- do: labels
302344
labels: ['swift']
@@ -313,6 +355,58 @@ mergeable:
313355
labels: ['compiler']
314356
mode: 'add'
315357

358+
- when: pull_request.*
359+
name: Add 'testsuite' label to PR if changeset includes changes to shared test schemas, fixtures, or harnesses
360+
validate:
361+
- do: changeset
362+
or:
363+
- must_include:
364+
regex: '^test/[^/]+\.thrift$'
365+
- must_include:
366+
regex: '^test/(Makefile|Makefile\.am|Makefile\.in|README\.md|index\.html|known_failures_Linux\.json|rebuild_known_failures\.sh|result\.js|results\.json|test\.py|tests\.json|valgrind\.suppress)$'
367+
- must_include:
368+
regex: '^test/(audit|crossrunner|features|keys|log|partial|threads|v0\.16)/.*'
369+
pass:
370+
- do: labels
371+
labels: ['testsuite']
372+
mode: 'add'
373+
374+
- when: pull_request.*
375+
name: Add 'build and general CI' label to PR if changeset includes changes to CMake, automake, or build system files
376+
validate:
377+
- do: changeset
378+
or:
379+
- must_include:
380+
regex: '(^|.*/)CMakeLists\.txt$'
381+
- must_include:
382+
regex: '.*\.cmake$'
383+
- must_include:
384+
regex: '(^|.*/)Makefile\.am$'
385+
- must_include:
386+
regex: '(^|.*/)Makefile\.in$'
387+
- must_include:
388+
regex: '(^|.*/)configure\.ac$'
389+
- must_include:
390+
regex: '^bootstrap\.sh$'
391+
- must_include:
392+
regex: '^aclocal$'
393+
- must_include:
394+
regex: '^aclocal\.m4$'
395+
- must_include:
396+
regex: '^build/.*'
397+
- must_include:
398+
regex: '^build-docker/.*'
399+
- must_include:
400+
regex: '^debian/.*'
401+
- must_include:
402+
regex: '^appveyor\.yml$'
403+
- must_include:
404+
regex: '^sonar-project\.properties$'
405+
pass:
406+
- do: labels
407+
labels: ['build and general CI']
408+
mode: 'add'
409+
316410
- when: pull_request.*
317411
name: Add 'github_actions' label to PR if changeset includes changes to the .github/workflows directory
318412
validate:

0 commit comments

Comments
 (0)