master
yml 263 lines 8.29 KB
Raw
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-file it as a new issue.
27
28
29 Thank you!
30 - description: Close year old issues
31 frequencies:
32 - weekday:
33 day: Thursday
34 time: 12:00
35 filters:
36 - isIssue
37 - isOpen
38 - isNotLabeledWith:
39 label: feature
40 - noActivitySince:
41 days: 365
42 actions:
43 - closeIssue
44 - addReply:
45 reply: >-
46 This issue has been automatically closed since it has not had any activity for the past **year**. If you're still experiencing this issue please re-file this as a new issue or feature request.
47
48
49 Thank you!
50 eventResponderTasks:
51 - if:
52 - payloadType: Issue_Comment
53 - isAction:
54 action: Created
55 - isActivitySender:
56 issueAuthor: True
57 - hasLabel:
58 label: needs-author-feedback
59 then:
60 - removeLabel:
61 label: needs-author-feedback
62 description:
63 - if:
64 - payloadType: Issue_Comment
65 - commentContains:
66 pattern: '\/dup(licate|e)?(\s+of)?\s+\#[\d]+'
67 isRegex: True
68 - or:
69 - activitySenderHasPermission:
70 permission: Admin
71 - activitySenderHasPermission:
72 permission: Write
73 then:
74 - addReply:
75 reply: >-
76 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.
77
78
79 Thanks for your report!
80 - closeIssue
81 - addLabel:
82 label: duplicate
83 description:
84 - if:
85 - payloadType: Issue_Comment
86 - commentContains:
87 pattern: '\/need-repro'
88 isRegex: True
89 - or:
90 - activitySenderHasPermission:
91 permission: Admin
92 - activitySenderHasPermission:
93 permission: Write
94 then:
95 - addReply:
96 reply: >-
97 We’ve labelled your issue as ‘need-repro’ since we need more steps to help identify your problem.
98
99
100 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.
101
102
103 Thank you!
104 - addLabel:
105 label: need-repro
106 description:
107 - if:
108 - payloadType: Issue_Comment
109 then:
110 - cleanEmailReply
111 description:
112 - if:
113 - payloadType: Issue_Comment
114 - commentContains:
115 pattern: '\/template'
116 isRegex: True
117 - or:
118 - activitySenderHasPermission:
119 permission: Admin
120 - activitySenderHasPermission:
121 permission: Write
122 then:
123 - closeIssue
124 - addReply:
125 reply: >-
126 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.
127
128
129 Thank you!
130 - lockIssue
131 description:
132 - if:
133 - payloadType: Issue_Comment
134 - commentContains:
135 pattern: '\/fixed'
136 isRegex: True
137 - or:
138 - activitySenderHasPermission:
139 permission: Admin
140 - activitySenderHasPermission:
141 permission: Write
142 then:
143 - closeIssue
144 - addLabel:
145 label: fixedininsiderbuilds
146 - addReply:
147 reply: >-
148 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.
149
150
151 Thank you!
152 - removeLabel:
153 label: fixinbound
154 description:
155 - if:
156 - payloadType: Issue_Comment
157 - commentContains:
158 pattern: '\/logs?'
159 isRegex: True
160 - or:
161 - activitySenderHasPermission:
162 permission: Admin
163 - activitySenderHasPermission:
164 permission: Write
165 then:
166 - addReply:
167 reply: >-
168 Hello! Could you please provide more logs to help us better diagnose your issue?
169
170
171 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**:
172
173
174 ```
175
176 Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
177
178 Set-ExecutionPolicy Bypass -Scope Process -Force
179
180 .\collect-wsl-logs.ps1
181
182 ```
183
184 The script will output the path of the log file once done.
185
186
187 Once completed please upload the output files to this GitHub issue.
188
189
190 See [Collect WSL logs (recommended method)](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method).
191
192
193 If you choose to email these logs instead of attaching them to the bug, please send them to wsl-gh-logs@microsoft.com with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body.
194
195
196 Thank you!
197 - addLabel:
198 label: needs-author-feedback
199 description:
200 - if:
201 - payloadType: Issue_Comment
202 - commentContains:
203 pattern: '\/dump?'
204 isRegex: True
205 - or:
206 - activitySenderHasPermission:
207 permission: Admin
208 - activitySenderHasPermission:
209 permission: Write
210 then:
211 - addReply:
212 reply: >-
213 Hello! Could you please provide logs and process dumps to help us better diagnose your issue?
214
215
216 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**:
217
218
219 ```
220
221 Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
222
223 Set-ExecutionPolicy Bypass -Scope Process -Force
224
225 .\collect-wsl-logs.ps1 -Dump
226
227 ```
228
229 The script will output the path of the log file once done.
230
231
232 Once completed please upload the output files to this GitHub issue.
233
234
235 See [Collect WSL logs (recommended method)](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method).
236
237
238 Thank you!
239 - addLabel:
240 label: needs-author-feedback
241 description:
242 - if:
243 - payloadType: Issue_Comment
244 - commentContains:
245 pattern: '\/bsod?'
246 isRegex: True
247 - or:
248 - activitySenderHasPermission:
249 permission: Admin
250 - activitySenderHasPermission:
251 permission: Write
252 then:
253 - addReply:
254 reply: >-
255 Hello! Could you please provide a kernel dump to help us better diagnose your issue?
256 To collect a kernel dump, follow [10) Reporting a Windows crash (BSOD)](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#10-reporting-a-windows-crash-bsod)
257
258 Thank you!
259 - addLabel:
260 label: needs-author-feedback
261 description:
262 onFailure:
263 onSuccess: