Onboarding to GitOps.ResourceManagement (#10202)
* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement * Deleting fabricbot.json --------- Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
microsoft-github-policy-service[bot] committed
Aug 22, 2023 at 14:49 UTC
7c39f39c6917c53ad81a5437a4549bb337f81fed
2 files changed
+220
-833
.github/fabricbot.json
deleted
-833
@@ -1,833 +0,0 @@
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
- "taskType": "trigger",
776
- "capabilityId": "IssueResponder",
777
- "subCapability": "IssueCommentResponder",
778
- "version": "1.0",
779
- "config": {
780
- "conditions": {
781
- "operator": "and",
782
- "operands": [
783
- {
784
- "name": "commentContains",
785
- "parameters": {
786
- "commentPattern": "\\/dump?",
787
- "isRegex": true
788
- }
789
- },
790
- {
791
- "operator": "or",
792
- "operands": [
793
- {
794
- "name": "activitySenderHasPermissions",
795
- "parameters": {
796
- "permissions": "admin"
797
- }
798
- },
799
- {
800
- "name": "activitySenderHasPermissions",
801
- "parameters": {
802
- "permissions": "write"
803
- }
804
- }
805
- ]
806
- }
807
- ]
808
- },
809
- "eventType": "issue",
810
- "eventNames": [
811
- "issue_comment"
812
- ],
813
- "taskName": "Ask for dumps",
814
- "actions": [
815
- {
816
- "name": "addReply",
817
- "parameters": {
818
- "comment": "Hello! Could you please provide logs and process dumps to help us better diagnose your issue? \n\nTo collect WSL logs and dumps, 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 -Dump\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!"
819
- }
820
- },
821
- {
822
- "name": "addLabel",
823
- "parameters": {
824
- "label": "needs-author-feedback"
825
- }
826
- }
827
- ]
828
- },
829
- "disabled": false
830
- }
831
- ],
832
- "userGroups": []
833
-}
.github/policies/resourceManagement.yml
new
+220
@@ -0,0 +1,220 @@
1
+id:
2
+name: GitOps.PullRequestIssueManagement
3
+description: GitOps.PullRequestIssueManagement primitive
4
+owner:
5
+resource: repository
6
+disabled: false
7
+where:
8
+configuration:
9
+ resourceManagementConfiguration:
10
+ scheduledSearches:
11
+ - description:
12
+ frequencies:
13
+ - hourly:
14
+ hour: 3
15
+ filters:
16
+ - isIssue
17
+ - isOpen
18
+ - hasLabel:
19
+ label: needs-author-feedback
20
+ - noActivitySince:
21
+ days: 7
22
+ actions:
23
+ - closeIssue
24
+ - addReply:
25
+ reply: >-
26
+ 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.
27
+
28
+
29
+ Thank you!
30
+ eventResponderTasks:
31
+ - if:
32
+ - payloadType: Issue_Comment
33
+ - isAction:
34
+ action: Created
35
+ - isActivitySender:
36
+ issueAuthor: True
37
+ - hasLabel:
38
+ label: needs-author-feedback
39
+ then:
40
+ - removeLabel:
41
+ label: needs-author-feedback
42
+ description:
43
+ - if:
44
+ - payloadType: Issue_Comment
45
+ - commentContains:
46
+ pattern: '\/dup(licate|e)?(\s+of)?\s+\#[\d]+'
47
+ isRegex: True
48
+ - or:
49
+ - activitySenderHasPermission:
50
+ permission: Admin
51
+ - activitySenderHasPermission:
52
+ permission: Write
53
+ then:
54
+ - addReply:
55
+ reply: >-
56
+ 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.
57
+
58
+
59
+ Thanks for your report!
60
+ - closeIssue
61
+ - addLabel:
62
+ label: duplicate
63
+ description:
64
+ - if:
65
+ - payloadType: Issue_Comment
66
+ - commentContains:
67
+ pattern: '\/need-repro'
68
+ isRegex: True
69
+ - or:
70
+ - activitySenderHasPermission:
71
+ permission: Admin
72
+ - activitySenderHasPermission:
73
+ permission: Write
74
+ then:
75
+ - addReply:
76
+ reply: >-
77
+ We’ve labelled your issue as ‘need-repro’ since we need more steps to help identify your problem.
78
+
79
+
80
+ 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.
81
+
82
+
83
+ Thank you!
84
+ - addLabel:
85
+ label: need-repro
86
+ description:
87
+ - if:
88
+ - payloadType: Issue_Comment
89
+ then:
90
+ - cleanEmailReply
91
+ description:
92
+ - if:
93
+ - payloadType: Issue_Comment
94
+ - commentContains:
95
+ pattern: '\/template'
96
+ isRegex: True
97
+ - or:
98
+ - activitySenderHasPermission:
99
+ permission: Admin
100
+ - activitySenderHasPermission:
101
+ permission: Write
102
+ then:
103
+ - closeIssue
104
+ - addReply:
105
+ reply: >-
106
+ 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.
107
+
108
+
109
+ Thank you!
110
+ - lockIssue
111
+ description:
112
+ - if:
113
+ - payloadType: Issue_Comment
114
+ - commentContains:
115
+ pattern: '\/fixed'
116
+ isRegex: True
117
+ - or:
118
+ - activitySenderHasPermission:
119
+ permission: Admin
120
+ - activitySenderHasPermission:
121
+ permission: Write
122
+ then:
123
+ - closeIssue
124
+ - addLabel:
125
+ label: fixedininsiderbuilds
126
+ - addReply:
127
+ reply: >-
128
+ 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.
129
+
130
+
131
+ Thank you!
132
+ - removeLabel:
133
+ label: fixinbound
134
+ description:
135
+ - if:
136
+ - payloadType: Issue_Comment
137
+ - commentContains:
138
+ pattern: '\/logs?'
139
+ isRegex: True
140
+ - or:
141
+ - activitySenderHasPermission:
142
+ permission: Admin
143
+ - activitySenderHasPermission:
144
+ permission: Write
145
+ then:
146
+ - addReply:
147
+ reply: >-
148
+ Hello! Could you please provide more logs to help us better diagnose your issue?
149
+
150
+
151
+ To 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**:
152
+
153
+
154
+ ```
155
+
156
+ Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
157
+
158
+ Set-ExecutionPolicy Bypass -Scope Process -Force
159
+
160
+ .\collect-wsl-logs.ps1
161
+
162
+ ```
163
+
164
+ The scipt will output the path of the log file once done.
165
+
166
+
167
+ Once completed please upload the output files to this Github issue.
168
+
169
+
170
+ [Click here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) for more info on logging
171
+
172
+
173
+ Thank you!
174
+ - addLabel:
175
+ label: needs-author-feedback
176
+ description:
177
+ - if:
178
+ - payloadType: Issue_Comment
179
+ - commentContains:
180
+ pattern: '\/dump?'
181
+ isRegex: True
182
+ - or:
183
+ - activitySenderHasPermission:
184
+ permission: Admin
185
+ - activitySenderHasPermission:
186
+ permission: Write
187
+ then:
188
+ - addReply:
189
+ reply: >-
190
+ Hello! Could you please provide logs and process dumps to help us better diagnose your issue?
191
+
192
+
193
+ To collect WSL logs and dumps, download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**:
194
+
195
+
196
+ ```
197
+
198
+ Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
199
+
200
+ Set-ExecutionPolicy Bypass -Scope Process -Force
201
+
202
+ .\collect-wsl-logs.ps1 -Dump
203
+
204
+ ```
205
+
206
+ The scipt will output the path of the log file once done.
207
+
208
+
209
+ Once completed please upload the output files to this Github issue.
210
+
211
+
212
+ [Click here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) for more info on logging
213
+
214
+
215
+ Thank you!
216
+ - addLabel:
217
+ label: needs-author-feedback
218
+ description:
219
+onFailure:
220
+onSuccess: