@@ -230,3 +230,175 @@ automations:
230
230
actions :
231
231
- removeFromProject : [23] # ['Pull Requests Dashboard']
232
232
- removeFromProject : [22] # ['Community Dashboard']
233
+
234
+
235
+ # ###########################################################################################################
236
+ # Issues Automation #
237
+ # ###########################################################################################################
238
+ # 1. Whenever a new issue is created and has no priority label on it (e.g., P1, P2, etc.):
239
+ # a. it must be added to the "Issues Confirmation and Triage Board" project
240
+ # b. it must be moved to the "Ready for confirmation" column on the board
241
+ # c. it must be labeled with the "Issue: ready for confirmation" label
242
+ # d. the below labels must be removed from the issue:
243
+ # - "feature request"
244
+ - trigger : issues.opened
245
+ conditions :
246
+ - ['labels#name', 'notIncludes', 'Priority']
247
+ actions :
248
+ - addToProject : [18] # ['Issues Confirmation and Triage Board']
249
+ - addLabels : ['Issue: ready for confirmation']
250
+ - moveTo : [18, 'Ready for Confirmation'] # ['Issues Confirmation and Triage Board', 'Ready for Confirmation']
251
+ - removeLabels : ['feature request']
252
+
253
+ # 2. Whenever an issue is labeled with the "Issue: Needs Update" label:
254
+ # a. it must be moved to the "Needs Update" column on the board
255
+ # b. the below labels must be removed from the issue:
256
+ # - "Issue: ready for confirmation"
257
+ # - "Issue: Confirmed"
258
+ # - "Issue: On Hold"
259
+ # - "Reproduced on 2.4.x"
260
+ - trigger : issues.labeled
261
+ conditions :
262
+ - ['modifiedLabel.name', 'eq', 'Issue : needs update']
263
+ actions :
264
+ - moveTo : [18, 'Needs Update'] # ['Issues Confirmation and Triage Board', 'Needs Update']
265
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: Confirmed', 'Issue: On Hold', 'Reproduced on 2.4.x']
266
+
267
+ - trigger : issues.labeled
268
+ conditions :
269
+ - ['modifiedLabel.name', 'eq', 'Issue : ready for confirmation']
270
+ actions :
271
+ - moveTo : [18, 'Ready for Confirmation'] # ['Issues Confirmation and Triage Board', 'Needs Update']
272
+ - removeLabels : ['Issue: Needs Update', 'Issue: Confirmed', 'Issue: On Hold', 'Reproduced on 2.4.x']
273
+
274
+ # 3. Whenever an issue is moved to the "Needs Update" column on the board:
275
+ # a. it must be labeled with "Issue: Needs Update" label
276
+ # b. the below labels must be removed from the issue:
277
+ # - "Issue: ready for confirmation"
278
+ # - "Issue: Confirmed"
279
+ # - "Issue: On Hold"
280
+ # - "Reproduced on 2.4.x"
281
+ - trigger : projects_v2_item.edited
282
+ conditions :
283
+ - ['movedToColumn.name', 'eq', 'Needs Update']
284
+ actions :
285
+ - addLabels : ['Issue: Needs Update']
286
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: Confirmed', 'Issue: On Hold', 'Reproduced on 2.4.x']
287
+
288
+ # 4. Whenever an issue is labeled with the "feature request" label:
289
+ # a. it must be removed from the "Issues Confirmation and Triage Board" project
290
+ # b. it must be added to the "feature requests Backlog" project
291
+ # c. it must be moved to the "Ready for Grooming" column of the "feature requests Backlog" project
292
+ # d. the below labels must be removed from the issue:
293
+ # - "Issue: ready for confirmation"
294
+ # - "Issue: Confirmed"
295
+ # - "Issue: On Hold"
296
+ # - "Reproduced on 2.4.x"
297
+ - trigger : issues.labeled
298
+ conditions :
299
+ - ['modifiedLabel.name', 'eq', 'feature request']
300
+ actions :
301
+ - removeFromProject : [18] # ['Issues Confirmation and Triage Board']
302
+ - addToProject : [20] # ['Feature Requests Backlog']
303
+ - moveTo : [18, 'Ready for Grooming'] # ['Feature Requests Backlog', 'Ready for Grooming']
304
+ - addLabels : ['Progress: ready for grooming']
305
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: Confirmed', 'Issue: On Hold', 'Reproduced on 2.4.x']
306
+
307
+ # 5. Whenever an issue is labeled with the "Issue: On Hold" label:
308
+ # a. it must be moved to the "On Hold" column on the board
309
+ # b. the below labels must be removed from the issue:
310
+ # - "Issue: ready for confirmation"
311
+ # - "Issue: Confirmed"
312
+ # - "Issue: Needs Update"
313
+ # - "Reproduced on 2.4.x"
314
+ - trigger : issues.labeled
315
+ conditions :
316
+ - ['modifiedLabel.name', 'eq', 'Issue : On Hold']
317
+ actions :
318
+ - moveTo : [18, 'On Hold'] # ['Issues Confirmation and Triage Board', 'On Hold']
319
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: Confirmed', 'Issue: needs update', 'Reproduced on 2.4.x']
320
+
321
+ # 6. Whenever an issue is moved to the "On Hold" column on the board:
322
+ # a. it must be labeled with "Issue: On Hold" label
323
+ # b. the below labels must be removed from the issue:
324
+ # - "Issue: ready for confirmation"
325
+ # - "Issue: Confirmed"
326
+ # - "Issue: Needs Update"
327
+ # - "Reproduced on 2.4.x"
328
+ - trigger : projects_v2_item.edited
329
+ conditions :
330
+ - ['movedToColumn.name', 'eq', 'On Hold']
331
+ - ['projects#number', 'in', 18]
332
+ actions :
333
+ - addLabels : ['Issue: On Hold']
334
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: Confirmed', 'Issue: Needs Update', 'Reproduced on 2.4.x']
335
+
336
+ # 7. Whenever an issue is labeled with the "Issue: Confirmed" label:
337
+ # a. it must be moved to the "Confirmed" column on the board
338
+ # b. the below labels must be removed from the issue:
339
+ # - "Issue: ready for confirmation"
340
+ # - "Issue: On Hold"
341
+ # - "Issue: Needs Update"
342
+ - trigger : issues.labeled
343
+ conditions :
344
+ - ['modifiedLabel.name', 'eq', 'Issue : Confirmed']
345
+ actions :
346
+ - moveTo : [18, 'Confirmed'] # ['Issues Confirmation and Triage Board', 'Confirmed']
347
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: On Hold', 'Issue: Needs Update']
348
+
349
+ # 8. Whenever an issue is moved to the "Confirmed" column on the board:
350
+ # a. it must be labeled with "Issue: Confirmed" label
351
+ # b. the below labels must be removed from the issue:
352
+ # - "Issue: ready for confirmation"
353
+ # - "Issue: On Hold"
354
+ # - "Issue: Needs Update"
355
+ - trigger : projects_v2_item.edited
356
+ conditions :
357
+ - ['movedToColumn.name', 'eq', 'Confirmed']
358
+ actions :
359
+ - addLabels : ['Issue: Confirmed']
360
+ - removeLabels : ['Issue: ready for confirmation', 'Issue: On Hold', 'Issue: Needs Update']
361
+
362
+ # 9. Whenever an issue is labeled with "Priority: P0", "Priority: P1", or "Priority: P2" label:
363
+ # a. it must be removed from the "Issues Confirmation and Triage Board" project
364
+ # b. it must be added to the "High Priority Backlog" project
365
+ # c. it must be moved to the "Ready for Development" column of the "High Priority Backlog" project
366
+ - trigger : issues.labeled
367
+ conditions :
368
+ - [
369
+ ['modifiedLabel.name', 'eq', 'Priority : P0'],
370
+ ['modifiedLabel.name', 'eq', 'Priority : P1'],
371
+ ['modifiedLabel.name', 'eq', 'Priority : P2']
372
+ ]
373
+ actions :
374
+ - removeFromProject : [18] # ['Issues Confirmation and Triage Board']
375
+ - addToProject : [21] # ['High Priority Backlog']
376
+ - moveTo : [21, 'Ready for Development'] # ['High Priority Backlog', 'Ready for Development']
377
+
378
+ # 10. Whenever an issue is labeled with "Priority: P3" or "Priority: P4" label:
379
+ # a. it must be removed from the "Issues Confirmation and Triage Board" project
380
+ # b. it must be added to the "Low Priority Backlog" project
381
+ # c. it must be moved to the "Ready for Development" column of the "Low Priority Backlog" project
382
+ - trigger : issues.labeled
383
+ conditions :
384
+ - [
385
+ ['modifiedLabel.name', 'eq', 'Priority : P3'],
386
+ ['modifiedLabel.name', 'eq', 'Priority : P4']
387
+ ]
388
+ actions :
389
+ - removeFromProject : [18] # ['Issues Confirmation and Triage Board']
390
+ - addToProject : [19] # ['Low Priority Backlog']
391
+ - moveTo : [19, 'Ready for Development'] # ['Low Priority Backlog', 'Ready for Development']
392
+
393
+ - trigger : issues.labeled
394
+ conditions :
395
+ - [
396
+ ['modifiedLabel.name', 'eq', 'Priority : P0'],
397
+ ['modifiedLabel.name', 'eq', 'Priority : P1'],
398
+ ['modifiedLabel.name', 'eq', 'Priority : P2'],
399
+ ['modifiedLabel.name', 'eq', 'Priority : P3'],
400
+ ['modifiedLabel.name', 'eq', 'Priority : P4']
401
+ ]
402
+ actions :
403
+ - comment : ['Applying recursive label glo47154']
404
+ - addLabelsToRelated : ['${modifiedLabel.name}']
0 commit comments