-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathlabeler.yml
362 lines (317 loc) · 9.05 KB
/
labeler.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
# Copyright (c) 2022 Sharezone UG (haftungsbeschränkt)
# Licensed under the EUPL-1.2-or-later.
#
# You may obtain a copy of the Licence at:
# https://joinup.ec.europa.eu/software/page/eupl
#
# SPDX-License-Identifier: EUPL-1.2
# This file is used by the GitHub Action "labeler" to automatically add labels
# to pull requests based on the files that have been changed in the pull
# request.
#
# The action uses minimatch patterns to match files. For more information, see
# https://github.com/isaacs/minimatch
#
# Here quick crash course about the glob pattern:
# When we have "**/homework/**" returns this always true, if in the path of file
# a directory "homework" contains:
# "app/lib/homework/add.dart" -> true
# "app/lib/timetable/add.dart" -> false
#
# When we have "**/**homework**" returns this always true, if a file contains
# the word "homework":
# "app/lib/homework_add.dart" -> true
# "app/lib/fab_homework_button.dart" -> true
# "app/lib/homeworks_page.dart" -> true
# "app/lib/homewor_page.dart" -> false
#
# Try this the following link to play around with the glob pattern:
# https://globster.xyz/?q=**%2F**homework**&f=app%2Flib%2Fhomework_page.dart%2Capp%2Flib%2Ftimetable_page.dart%2Capp%2Flib%2Fhomework%2Fadd.dart&embed=1
#
# Another recommendation is to keep the global general and wide. For the
# "feature: homework" label, do not list all the paths to the homework
# directories. Instead, just use something like "**/homework/**". This will
# automatically include the app files, test files, package files and asset files
# that contain a homework directory. Of course, this can lead to false positives
# in a few cases. However, we prefer the general glob to the small chance of a
# false positive because we think the chance of not assigning the label with too
# specific globs is much higher than having a false positive with a general
# glob. And when searching for a PR with labels, it is usually better to find a
# few false positives than not to find a PR about a change in the homework
# feature that does not have the homework label.
#
# We are not going to include "w: " labels because they are too specific and
# it's too hard to maintain the paths for the files. Searching stuff with the
# "feature: " label should be enough.
"ci/cd":
- changed-files:
- any-glob-to-any-file:
- .github/workflows/**
- .github/labeler.yml
- .github/dependabot.yml
- codemagic.yaml
- "**/firebase.json"
- "**/.firebaserc"
- "bin/check_license_headers.sh"
- "bin/add_license_headers.sh"
- "bin/source_of_truth/**"
"documentation":
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- "**/*.mdx"
- "docs/**"
- "docs.yaml"
"dependencies":
- changed-files:
- any-glob-to-any-file:
- "**/pubspec.yaml"
- "**/pubspec.lock"
- ".fvm/**"
"testing":
- changed-files:
- any-glob-to-any-file:
- "**/*_test.dart"
- "**/test_driver/**"
- "**/test/**"
- "**/test_goldens/**"
- "**/integration_test/**"
- "**/dart_test.yaml"
"platform: android":
- changed-files:
- any-glob-to-any-file:
- "app/android/**"
- "**/**android**"
- "**/**_android/**"
- "**/android_**/**"
- "**/**_android_**/**"
"platform: ios":
- changed-files:
- any-glob-to-any-file:
- "app/ios/**"
- "**/**ios**"
- "**/**_ios**/**"
- "**/ios_**/**"
- "**/**_ios_**/**"
"platform: macos":
- changed-files:
- any-glob-to-any-file:
- "app/macos/**"
- "**/**macos**"
- "**/**_macos/**"
- "**/macos_**/**"
- "**/**_macos_**/**"
"platform: web":
- changed-files:
- any-glob-to-any-file:
- "app/web/**"
- "**/**web**"
- "**/**_web/**"
- "**/web_**/**"
- "**/**_web_**/**"
"code quality":
- changed-files:
- any-glob-to-any-file:
- "**/analysis_options.yaml"
- "lib/sharezone_lints/**"
"legal":
- changed-files:
- any-glob-to-any-file:
- "LICENSE"
- "**/**privacy_policy**"
- "**/**imprint**"
"sharezone cli":
- changed-files:
- any-glob-to-any-file:
- "tools/sz_repo_cli/**"
- "bin/sz"
- "bin/sharezone"
"admin console":
- changed-files:
- any-glob-to-any-file:
- "console/**"
"ui / ux":
- changed-files:
- any-glob-to-any-file:
- "**/theme/**"
- "**/**theme**"
- app/fonts/**
- lib/sharezone_widgets/**
- app/**/widgets/**
# Assets like images, icons, etc.
- "**/assets/**"
"ui: dark-mode":
- changed-files:
- any-glob-to-any-file:
- "**/**dark_theme**"
"ui: light-mode":
- changed-files:
- any-glob-to-any-file:
- "**/**light_theme**"
"feature: analytics":
- changed-files:
- any-glob-to-any-file:
- "**/analytics/**"
- "**/**analytics**"
- "lib/analytics/**"
"feature: attachments":
- changed-files:
- any-glob-to-any-file:
- "**/attachments/**"
- "**/**attachment**"
"feature: authentification":
- changed-files:
- any-glob-to-any-file:
- "**/authentication/**"
- "**/auth/**"
- "**/**sign_in**"
- "**/**sign_out**"
- "**/**sign_up**"
- "**/**registration**"
- "**/**login**"
"feature: comments":
- changed-files:
- any-glob-to-any-file:
- "**/comments/**"
- "**/**comment**"
"feature: feedback":
- changed-files:
- any-glob-to-any-file:
- "**/feedback/**"
- "**/**feedback**"
"feature: file-sharing":
- changed-files:
- any-glob-to-any-file:
- "**/filesharing/**"
- "**/file_sharing/**"
"feature: group permissions":
- changed-files:
- any-glob-to-any-file:
- "**/group_permissions/**"
- "**/**permission**"
"feature: groups:classes":
- changed-files:
- any-glob-to-any-file:
- "**/school_class/**"
- "**/school_class**"
"feature: groups:courses":
- changed-files:
- any-glob-to-any-file:
- "**/course/**"
- "**/**course**"
"feature: groups":
- changed-files:
- any-glob-to-any-file:
- "**/groups/**"
- "**/**group**"
- "lib/group_domain_implementation/**"
- "lib/group_domain_models/**"
# We still have some old code that uses the term "gruppe" instead of "group"
- "**/**gruppe**"
"feature: holidays":
- changed-files:
- any-glob-to-any-file:
- "**/holidays/**"
- "**/**holiday**"
# We don't have any files for the homework reminder feature yet (only
# notification.dart), so we can't list any paths here.
#
# "feature: homework reminder":
# - changed-files:
# - any-glob-to-any-file:
"feature: homework":
- changed-files:
- any-glob-to-any-file:
- "**/homework/**"
- "**/**homework**"
- "lib/hausaufgabenheft_logik/**"
"feature: homework-submissions":
- changed-files:
- any-glob-to-any-file:
# We still have some old code that uses the term "abgabe" instead of
# "submission"
- "**/abgabe/**"
- "**/**abgabe**"
- "**/**submission**/**"
- "**/**submission**"
"feature: information sheet":
- changed-files:
- any-glob-to-any-file:
- "**/blackboard/**"
- "**/**blackboard**"
"feature: navigation":
- changed-files:
- any-glob-to-any-file:
- "**/**navigation**/**"
- "**/navigation**"
- "**/drawer/**"
- "**/**drawer**"
"feature: notifications":
- changed-files:
- any-glob-to-any-file:
- "**/notifications/**"
- "**/**notification**"
- "app/**/firebase_auth_token_retreiver_impl.dart"
"feature: onboarding":
- changed-files:
- any-glob-to-any-file:
- "**/onboarding/**"
- "**/**onboarding**"
"feature: report":
- changed-files:
- any-glob-to-any-file:
- "**/report/**"
"feature: sharezone plus":
- changed-files:
- any-glob-to-any-file:
- "**/sharezone_plus/**"
- "**/**sharezone_plus**"
- "**/**subscription**"
"feature: timetable / calendar":
- changed-files:
- any-glob-to-any-file:
- "**/timetable/**"
- "**/**timetable**"
- "**/**lesson**"
- "**/**lesson**/**"
- "**/calendrical_events/**"
"feature: universal file features":
- changed-files:
- any-glob-to-any-file:
- "**/filesharing/**"
"feature: qr code scanner":
- changed-files:
- any-glob-to-any-file:
- "**/qr_code_scanner/**"
- "**/**qr_code_scanner**"
"feature: grades":
- changed-files:
- any-glob-to-any-file:
- "**/grades/**"
- "**/**grade**"
"user: parent":
- changed-files:
- any-glob-to-any-file:
- "**/parent/**"
- "**/**parent**"
"user: pupil / student":
- changed-files:
- any-glob-to-any-file:
- "**/student/**"
- "**/**student**"
"user: teacher":
- changed-files:
- any-glob-to-any-file:
- "**/teacher/**"
- "**/**teacher**"
# We still have some old code that uses the term "lehrer" instead of "teacher"
- "**/lehrer/**"
"w: dashboard-page":
- changed-files:
- any-glob-to-any-file:
- "**/dashboard/**"
- "**/**dashboard**"
"website":
- changed-files:
- any-glob-to-any-file:
- "website/**"