Add `.github/fabricbot.json`
msftbot[bot] committed
Jun 28, 2022 at 22:48 UTC
245f193a68b368e6612af45e3c77ba0c7c2c052e
1 file changed
+776
.github/fabricbot.json
new
+776
@@ -0,0 +1,776 @@
1
+{
2
+ "version": "1.0",
3
+ "tasks": [
4
+ {
5
+ "taskType": "trigger",
6
+ "capabilityId": "IssueResponder",
7
+ "subCapability": "IssueCommentResponder",
8
+ "version": "1.0",
9
+ "id": "jeBIDtucz",
10
+ "config": {
11
+ "eventType": "issue",
12
+ "eventNames": [
13
+ "issue_comment"
14
+ ],
15
+ "conditions": {
16
+ "operator": "and",
17
+ "operands": [
18
+ {
19
+ "name": "isAction",
20
+ "parameters": {
21
+ "action": "created"
22
+ }
23
+ },
24
+ {
25
+ "name": "isActivitySender",
26
+ "parameters": {
27
+ "user": {
28
+ "type": "author"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "name": "hasLabel",
34
+ "parameters": {
35
+ "label": "needs-author-feedback"
36
+ }
37
+ }
38
+ ]
39
+ },
40
+ "taskName": "Replace needs author feedback label with needs attention label when the author comments on an issue",
41
+ "actions": [
42
+ {
43
+ "name": "removeLabel",
44
+ "parameters": {
45
+ "label": "needs-author-feedback"
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "taskType": "scheduled",
53
+ "capabilityId": "ScheduledSearch",
54
+ "subCapability": "ScheduledSearch",
55
+ "version": "1.1",
56
+ "config": {
57
+ "taskName": "Close stale issues",
58
+ "frequency": [
59
+ {
60
+ "weekDay": 0,
61
+ "hours": [
62
+ 0,
63
+ 3,
64
+ 6,
65
+ 9,
66
+ 12,
67
+ 15,
68
+ 18,
69
+ 21
70
+ ],
71
+ "timezoneOffset": -8
72
+ },
73
+ {
74
+ "weekDay": 1,
75
+ "hours": [
76
+ 0,
77
+ 3,
78
+ 6,
79
+ 9,
80
+ 12,
81
+ 15,
82
+ 18,
83
+ 21
84
+ ],
85
+ "timezoneOffset": -8
86
+ },
87
+ {
88
+ "weekDay": 2,
89
+ "hours": [
90
+ 0,
91
+ 3,
92
+ 6,
93
+ 9,
94
+ 12,
95
+ 15,
96
+ 18,
97
+ 21
98
+ ],
99
+ "timezoneOffset": -8
100
+ },
101
+ {
102
+ "weekDay": 3,
103
+ "hours": [
104
+ 0,
105
+ 3,
106
+ 6,
107
+ 9,
108
+ 12,
109
+ 15,
110
+ 18,
111
+ 21
112
+ ],
113
+ "timezoneOffset": -8
114
+ },
115
+ {
116
+ "weekDay": 4,
117
+ "hours": [
118
+ 0,
119
+ 3,
120
+ 6,
121
+ 9,
122
+ 12,
123
+ 15,
124
+ 18,
125
+ 21
126
+ ],
127
+ "timezoneOffset": -8
128
+ },
129
+ {
130
+ "weekDay": 5,
131
+ "hours": [
132
+ 0,
133
+ 3,
134
+ 6,
135
+ 9,
136
+ 12,
137
+ 15,
138
+ 18,
139
+ 21
140
+ ],
141
+ "timezoneOffset": -8
142
+ },
143
+ {
144
+ "weekDay": 6,
145
+ "hours": [
146
+ 0,
147
+ 3,
148
+ 6,
149
+ 9,
150
+ 12,
151
+ 15,
152
+ 18,
153
+ 21
154
+ ],
155
+ "timezoneOffset": -8
156
+ }
157
+ ],
158
+ "searchTerms": [
159
+ {
160
+ "name": "isIssue",
161
+ "parameters": {}
162
+ },
163
+ {
164
+ "name": "isOpen",
165
+ "parameters": {}
166
+ },
167
+ {
168
+ "name": "hasLabel",
169
+ "parameters": {
170
+ "label": "needs-author-feedback"
171
+ }
172
+ },
173
+ {
174
+ "name": "noActivitySince",
175
+ "parameters": {
176
+ "days": 7
177
+ }
178
+ }
179
+ ],
180
+ "actions": [
181
+ {
182
+ "name": "closeIssue",
183
+ "parameters": {}
184
+ },
185
+ {
186
+ "name": "addReply",
187
+ "parameters": {
188
+ "comment": "This issue has been automatically closed since it has not had any author activity for the past **7 days**. If you're still experiencing this issue please re-open it. \n\nThank you!"
189
+ }
190
+ }
191
+ ]
192
+ },
193
+ "id": "8L3NhlWcf"
194
+ },
195
+ {
196
+ "taskType": "scheduled",
197
+ "capabilityId": "ScheduledSearch",
198
+ "subCapability": "ScheduledSearch",
199
+ "version": "1.1",
200
+ "config": {
201
+ "taskName": "Add no recent activity label to issues",
202
+ "frequency": [
203
+ {
204
+ "weekDay": 0,
205
+ "hours": [
206
+ 1,
207
+ 4,
208
+ 7,
209
+ 10,
210
+ 13,
211
+ 16,
212
+ 19,
213
+ 22
214
+ ],
215
+ "timezoneOffset": -8
216
+ },
217
+ {
218
+ "weekDay": 1,
219
+ "hours": [
220
+ 1,
221
+ 4,
222
+ 7,
223
+ 10,
224
+ 13,
225
+ 16,
226
+ 19,
227
+ 22
228
+ ],
229
+ "timezoneOffset": -8
230
+ },
231
+ {
232
+ "weekDay": 2,
233
+ "hours": [
234
+ 1,
235
+ 4,
236
+ 7,
237
+ 10,
238
+ 13,
239
+ 16,
240
+ 19,
241
+ 22
242
+ ],
243
+ "timezoneOffset": -8
244
+ },
245
+ {
246
+ "weekDay": 3,
247
+ "hours": [
248
+ 1,
249
+ 4,
250
+ 7,
251
+ 10,
252
+ 13,
253
+ 16,
254
+ 19,
255
+ 22
256
+ ],
257
+ "timezoneOffset": -8
258
+ },
259
+ {
260
+ "weekDay": 4,
261
+ "hours": [
262
+ 1,
263
+ 4,
264
+ 7,
265
+ 10,
266
+ 13,
267
+ 16,
268
+ 19,
269
+ 22
270
+ ],
271
+ "timezoneOffset": -8
272
+ },
273
+ {
274
+ "weekDay": 5,
275
+ "hours": [
276
+ 1,
277
+ 4,
278
+ 7,
279
+ 10,
280
+ 13,
281
+ 16,
282
+ 19,
283
+ 22
284
+ ],
285
+ "timezoneOffset": -8
286
+ },
287
+ {
288
+ "weekDay": 6,
289
+ "hours": [
290
+ 1,
291
+ 4,
292
+ 7,
293
+ 10,
294
+ 13,
295
+ 16,
296
+ 19,
297
+ 22
298
+ ],
299
+ "timezoneOffset": -8
300
+ }
301
+ ],
302
+ "searchTerms": [
303
+ {
304
+ "name": "isIssue",
305
+ "parameters": {}
306
+ },
307
+ {
308
+ "name": "isOpen",
309
+ "parameters": {}
310
+ },
311
+ {
312
+ "name": "hasLabel",
313
+ "parameters": {
314
+ "label": "needs-author-feedback"
315
+ }
316
+ },
317
+ {
318
+ "name": "noActivitySince",
319
+ "parameters": {
320
+ "days": 7
321
+ }
322
+ },
323
+ {
324
+ "name": "noLabel",
325
+ "parameters": {
326
+ "label": "no-recent-activity"
327
+ }
328
+ }
329
+ ],
330
+ "actions": [
331
+ {
332
+ "name": "addLabel",
333
+ "parameters": {
334
+ "label": "no-recent-activity"
335
+ }
336
+ },
337
+ {
338
+ "name": "addReply",
339
+ "parameters": {
340
+ "comment": "This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**. Thank you for your contributions to WSL!"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ "id": "ee1UHNVW95",
346
+ "disabled": true
347
+ },
348
+ {
349
+ "taskType": "trigger",
350
+ "capabilityId": "IssueResponder",
351
+ "subCapability": "IssuesOnlyResponder",
352
+ "version": "1.0",
353
+ "id": "1w4kQj_7F",
354
+ "config": {
355
+ "eventType": "issue",
356
+ "eventNames": [
357
+ "issues",
358
+ "project_card"
359
+ ],
360
+ "conditions": {
361
+ "operator": "and",
362
+ "operands": [
363
+ {
364
+ "name": "labelAdded",
365
+ "parameters": {
366
+ "label": "need-repro"
367
+ }
368
+ },
369
+ {
370
+ "operator": "or",
371
+ "operands": [
372
+ {
373
+ "name": "activitySenderHasPermissions",
374
+ "parameters": {
375
+ "permissions": "admin"
376
+ }
377
+ },
378
+ {
379
+ "name": "activitySenderHasPermissions",
380
+ "parameters": {
381
+ "permissions": "write"
382
+ }
383
+ }
384
+ ]
385
+ }
386
+ ]
387
+ },
388
+ "taskName": "Need-Repro Auto response",
389
+ "actions": [
390
+ {
391
+ "name": "addReply",
392
+ "parameters": {
393
+ "comment": "We’ve labelled your issue as ‘need-repro’ since we need more steps to help identify your problem. Could you please provide us with reproducible steps for the issue you’re experiencing, including things such as the specific command line steps necessary to reproduce the behavior and their output. Thank you! -The WSL Team"
394
+ }
395
+ }
396
+ ]
397
+ },
398
+ "disabled": true
399
+ },
400
+ {
401
+ "taskType": "trigger",
402
+ "capabilityId": "IssueResponder",
403
+ "subCapability": "IssueCommentResponder",
404
+ "version": "1.0",
405
+ "id": "FhC7atb7p",
406
+ "config": {
407
+ "conditions": {
408
+ "operator": "and",
409
+ "operands": [
410
+ {
411
+ "name": "isAction",
412
+ "parameters": {
413
+ "action": "created"
414
+ }
415
+ },
416
+ {
417
+ "operator": "or",
418
+ "operands": [
419
+ {
420
+ "name": "isActivitySender",
421
+ "parameters": {
422
+ "user": "craigloewen-msft"
423
+ }
424
+ },
425
+ {
426
+ "name": "isActivitySender",
427
+ "parameters": {
428
+ "user": "therealkenc"
429
+ }
430
+ },
431
+ {
432
+ "name": "isActivitySender",
433
+ "parameters": {
434
+ "user": "benhillis"
435
+ }
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "name": "hasLabel",
441
+ "parameters": {
442
+ "label": "needs-attention"
443
+ }
444
+ }
445
+ ]
446
+ },
447
+ "eventType": "issue",
448
+ "eventNames": [
449
+ "issue_comment"
450
+ ],
451
+ "taskName": "Remove needs attention when commenting",
452
+ "actions": [
453
+ {
454
+ "name": "removeLabel",
455
+ "parameters": {
456
+ "label": "needs-attention"
457
+ }
458
+ }
459
+ ]
460
+ },
461
+ "disabled": true
462
+ },
463
+ {
464
+ "taskType": "trigger",
465
+ "capabilityId": "IssueResponder",
466
+ "subCapability": "IssueCommentResponder",
467
+ "version": "1.0",
468
+ "config": {
469
+ "conditions": {
470
+ "operator": "and",
471
+ "operands": [
472
+ {
473
+ "name": "commentContains",
474
+ "parameters": {
475
+ "bodyPattern": "/dup",
476
+ "isRegex": true,
477
+ "commentPattern": "\\/dup(licate|e)?(\\s+of)?\\s+#[\\d]+"
478
+ }
479
+ },
480
+ {
481
+ "operator": "or",
482
+ "operands": [
483
+ {
484
+ "name": "activitySenderHasPermissions",
485
+ "parameters": {
486
+ "permissions": "admin"
487
+ }
488
+ },
489
+ {
490
+ "name": "activitySenderHasPermissions",
491
+ "parameters": {
492
+ "permissions": "write"
493
+ }
494
+ }
495
+ ]
496
+ }
497
+ ]
498
+ },
499
+ "eventType": "issue",
500
+ "eventNames": [
501
+ "issue_comment"
502
+ ],
503
+ "taskName": "Helper to mark as duplicate",
504
+ "actions": [
505
+ {
506
+ "name": "addReply",
507
+ "parameters": {
508
+ "comment": "Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.\n\nThanks for your report!"
509
+ }
510
+ },
511
+ {
512
+ "name": "closeIssue",
513
+ "parameters": {}
514
+ },
515
+ {
516
+ "name": "addLabel",
517
+ "parameters": {
518
+ "label": "duplicate"
519
+ }
520
+ }
521
+ ]
522
+ },
523
+ "id": "GNVFUp_2Q"
524
+ },
525
+ {
526
+ "taskType": "trigger",
527
+ "capabilityId": "IssueResponder",
528
+ "subCapability": "IssueCommentResponder",
529
+ "version": "1.0",
530
+ "id": "wsAGPfUzN",
531
+ "config": {
532
+ "conditions": {
533
+ "operator": "and",
534
+ "operands": [
535
+ {
536
+ "name": "commentContains",
537
+ "parameters": {
538
+ "commentPattern": "\\/need-repro",
539
+ "isRegex": true
540
+ }
541
+ },
542
+ {
543
+ "operator": "or",
544
+ "operands": [
545
+ {
546
+ "name": "activitySenderHasPermissions",
547
+ "parameters": {
548
+ "permissions": "admin"
549
+ }
550
+ },
551
+ {
552
+ "name": "activitySenderHasPermissions",
553
+ "parameters": {
554
+ "permissions": "write"
555
+ }
556
+ }
557
+ ]
558
+ }
559
+ ]
560
+ },
561
+ "eventType": "issue",
562
+ "eventNames": [
563
+ "issue_comment"
564
+ ],
565
+ "taskName": "Need-Repro Auto response",
566
+ "actions": [
567
+ {
568
+ "name": "addReply",
569
+ "parameters": {
570
+ "comment": "We’ve labelled your issue as ‘need-repro’ since we need more steps to help identify your problem. \n\nCould you please provide us with reproducible steps for the issue you’re experiencing, including things such as the specific command line steps necessary to reproduce the behavior and their output. \n\nThank you!"
571
+ }
572
+ },
573
+ {
574
+ "name": "addLabel",
575
+ "parameters": {
576
+ "label": "need-repro"
577
+ }
578
+ }
579
+ ]
580
+ }
581
+ },
582
+ {
583
+ "taskType": "trigger",
584
+ "capabilityId": "EmailCleanser",
585
+ "subCapability": "EmailCleanser",
586
+ "version": "1.0",
587
+ "id": "Lf58JEJUS",
588
+ "config": {
589
+ "taskName": "Email reply cleanser"
590
+ }
591
+ },
592
+ {
593
+ "taskType": "trigger",
594
+ "capabilityId": "IssueResponder",
595
+ "subCapability": "IssueCommentResponder",
596
+ "version": "1.0",
597
+ "id": "C1A9D30HD",
598
+ "config": {
599
+ "conditions": {
600
+ "operator": "and",
601
+ "operands": [
602
+ {
603
+ "name": "commentContains",
604
+ "parameters": {
605
+ "commentPattern": "\\/template",
606
+ "isRegex": true
607
+ }
608
+ },
609
+ {
610
+ "operator": "or",
611
+ "operands": [
612
+ {
613
+ "name": "activitySenderHasPermissions",
614
+ "parameters": {
615
+ "permissions": "admin"
616
+ }
617
+ },
618
+ {
619
+ "name": "activitySenderHasPermissions",
620
+ "parameters": {
621
+ "permissions": "write"
622
+ }
623
+ }
624
+ ]
625
+ }
626
+ ]
627
+ },
628
+ "eventType": "issue",
629
+ "eventNames": [
630
+ "issue_comment"
631
+ ],
632
+ "taskName": "Close and ask for resubmit for incomplete template",
633
+ "actions": [
634
+ {
635
+ "name": "closeIssue",
636
+ "parameters": {}
637
+ },
638
+ {
639
+ "name": "addReply",
640
+ "parameters": {
641
+ "comment": "Hi! We've closed your issue since you haven't used the template, or it is incomplete. Could you please provide all the requested info in the bug template and resubmit? Having that information will help us be able to accurately diagnose and resolve your issue.\n\nThank you!"
642
+ }
643
+ },
644
+ {
645
+ "name": "lockIssue"
646
+ }
647
+ ]
648
+ }
649
+ },
650
+ {
651
+ "taskType": "trigger",
652
+ "capabilityId": "IssueResponder",
653
+ "subCapability": "IssueCommentResponder",
654
+ "version": "1.0",
655
+ "id": "Ekqq5mlWJ",
656
+ "config": {
657
+ "conditions": {
658
+ "operator": "and",
659
+ "operands": [
660
+ {
661
+ "name": "commentContains",
662
+ "parameters": {
663
+ "commentPattern": "\\/fixed",
664
+ "isRegex": true
665
+ }
666
+ },
667
+ {
668
+ "operator": "or",
669
+ "operands": [
670
+ {
671
+ "name": "activitySenderHasPermissions",
672
+ "parameters": {
673
+ "permissions": "admin"
674
+ }
675
+ },
676
+ {
677
+ "name": "activitySenderHasPermissions",
678
+ "parameters": {
679
+ "permissions": "write"
680
+ }
681
+ }
682
+ ]
683
+ }
684
+ ]
685
+ },
686
+ "eventType": "issue",
687
+ "eventNames": [
688
+ "issue_comment"
689
+ ],
690
+ "taskName": "Mark as fixed",
691
+ "actions": [
692
+ {
693
+ "name": "closeIssue",
694
+ "parameters": {}
695
+ },
696
+ {
697
+ "name": "addLabel",
698
+ "parameters": {
699
+ "label": "fixedininsiderbuilds"
700
+ }
701
+ },
702
+ {
703
+ "name": "addReply",
704
+ "parameters": {
705
+ "comment": "This bug or feature request originally submitted has been addressed in whole or in part. Related or ongoing bug or feature gaps should be opened as a new issue submission if one does not already exist. \n\nThank you!"
706
+ }
707
+ },
708
+ {
709
+ "name": "removeLabel",
710
+ "parameters": {
711
+ "label": "fixinbound"
712
+ }
713
+ }
714
+ ]
715
+ }
716
+ },
717
+ {
718
+ "taskType": "trigger",
719
+ "capabilityId": "IssueResponder",
720
+ "subCapability": "IssueCommentResponder",
721
+ "version": "1.0",
722
+ "id": "C-WVr8A2h",
723
+ "config": {
724
+ "conditions": {
725
+ "operator": "and",
726
+ "operands": [
727
+ {
728
+ "name": "commentContains",
729
+ "parameters": {
730
+ "isRegex": true,
731
+ "commentPattern": "\\/logs?"
732
+ }
733
+ },
734
+ {
735
+ "operator": "or",
736
+ "operands": [
737
+ {
738
+ "name": "activitySenderHasPermissions",
739
+ "parameters": {
740
+ "permissions": "admin"
741
+ }
742
+ },
743
+ {
744
+ "name": "activitySenderHasPermissions",
745
+ "parameters": {
746
+ "permissions": "write"
747
+ }
748
+ }
749
+ ]
750
+ }
751
+ ]
752
+ },
753
+ "eventType": "issue",
754
+ "eventNames": [
755
+ "issue_comment"
756
+ ],
757
+ "taskName": "Ask for logs",
758
+ "actions": [
759
+ {
760
+ "name": "addReply",
761
+ "parameters": {
762
+ "comment": "Hello! Could you please provide more logs to help us better diagnose your issue? \n\nTo collect WSL logs, download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**:\n\n```\nInvoke-WebRequest -UseBasicParsing \"https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1\" -OutFile collect-wsl-logs.ps1\nSet-ExecutionPolicy Bypass -Scope Process -Force\n.\\collect-wsl-logs.ps1\n```\nThe scipt will output the path of the log file once done. \n\nOnce completed please upload the output files to this Github issue.\n\n[Click here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) for more info on logging\n\nThank you!"
763
+ }
764
+ },
765
+ {
766
+ "name": "addLabel",
767
+ "parameters": {
768
+ "label": "needs-author-feedback"
769
+ }
770
+ }
771
+ ]
772
+ }
773
+ }
774
+ ],
775
+ "userGroups": []
776
+}