Skip to content

Commit 0896f71

Browse files
Trenlymdanish-kh
andauthored
Update triggers for new labels (microsoft#192383)
Co-authored-by: Muhammad Danish <[email protected]>
1 parent 98d5dbe commit 0896f71

File tree

2 files changed

+78
-1
lines changed

2 files changed

+78
-1
lines changed

.github/policies/moderatorTriggers.yml

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ configuration:
9696
then:
9797
- addLabel:
9898
label: Area-Matching
99+
# Area-Publish-Pipeline
100+
- if:
101+
- commentContains:
102+
pattern: '\[[Pp]olicy\]\s+[aA]rea[\s-][Pp]ublish(ing)?[\s-][pP]ipeline'
103+
isRegex: True
104+
then:
105+
- addLabel:
106+
label: Area-Publish-Pipeline
107+
# Area-Rebuild-Pipeline
108+
- if:
109+
- commentContains:
110+
pattern: '\[[Pp]olicy\]\s+[aA]rea[\s-][Rr]ebuild[\s-][pP]ipeline'
111+
isRegex: True
112+
then:
113+
- addLabel:
114+
label: Area-Rebuild-Pipeline
99115
# Area-Scope
100116
- if:
101117
- commentContains:
@@ -156,6 +172,14 @@ configuration:
156172
then:
157173
- addLabel:
158174
label: Error-Hash-Mismatch
175+
# Error-Installer-Availability
176+
- if:
177+
- commentContains:
178+
pattern: '\[[Pp]olicy\]\s+[Ee]rror[\s-][Ii]nstaller[\s-][Aa]vailability'
179+
isRegex: True
180+
then:
181+
- addLabel:
182+
label: Error-Installer-Availability
159183
# Hardware
160184
- if:
161185
- commentContains:
@@ -180,6 +204,14 @@ configuration:
180204
then:
181205
- addLabel:
182206
label: Highest-Version-Removal
207+
# Icon
208+
- if:
209+
- commentContains:
210+
pattern: '\[[Pp]olicy\]\s+[Ii]con'
211+
isRegex: True
212+
then:
213+
- addLabel:
214+
label: Icon
183215
# In-PR
184216
- if:
185217
- commentContains:
@@ -188,6 +220,14 @@ configuration:
188220
then:
189221
- addLabel:
190222
label: In-PR
223+
# Installer-Error
224+
- if:
225+
- commentContains:
226+
pattern: '\[[Pp]olicy\]\s+[iI]nstaller[\s-][Ee]rror'
227+
isRegex: True
228+
then:
229+
- addLabel:
230+
label: Installer-Error
191231
# Installer-Issue
192232
- if:
193233
- commentContains:
@@ -198,10 +238,18 @@ configuration:
198238
label: Installer-Issue
199239
- addLabel:
200240
label: Area-External
241+
# Interactive-Only-Download
242+
- if:
243+
- commentContains:
244+
pattern: '\[[Pp]olicy\]\s+[iI]nteractive[\s-][oO]nly[\s-][Dd]ownload'
245+
isRegex: True
246+
then:
247+
- addLabel:
248+
label: Interactive-Only-Download
201249
# Interactive-Only-Installer
202250
- if:
203251
- commentContains:
204-
pattern: '\[[Pp]olicy\]\s+[iI]nteractive[\s-][oO]nly([\s-][iI]nstaller)?'
252+
pattern: '\[[Pp]olicy\]\s+[iI]nteractive[\s-][oO]nly[\s-][iI]nstaller'
205253
isRegex: True
206254
then:
207255
- addLabel:
@@ -254,6 +302,14 @@ configuration:
254302
then:
255303
- addLabel:
256304
label: Manifest-Content-Incomplete
305+
# Manifest-Singleton-Deprecated
306+
- if:
307+
- commentContains:
308+
pattern: '\[[Pp]olicy\]\s+([Mm]anifest[\s-])?[Ss]ingleton[\s-][Dd]eprecated'
309+
isRegex: True
310+
then:
311+
- addLabel:
312+
label: Manifest-Singleton-Deprecated
257313
# Moderator-Approved
258314
- if:
259315
- commentContains:
@@ -445,6 +501,10 @@ configuration:
445501
label: Area-Manifest
446502
- removeLabel:
447503
label: Area-Matching
504+
- removeLabel:
505+
label: Area-Publish-Pipeline
506+
- removeLabel:
507+
label: Area-Rebuild-Pipeline
448508
- removeLabel:
449509
label: Area-Scope
450510
- removeLabel:
@@ -461,16 +521,24 @@ configuration:
461521
label: DSC
462522
- removeLabel:
463523
label: Error-Hash-Mismatch
524+
- removeLabel:
525+
label: Error-Installer-Availability
464526
- removeLabel:
465527
label: Hardware
466528
- removeLabel:
467529
label: Help-Wanted
468530
- removeLabel:
469531
label: Highest-Version-Removal
532+
- removeLabel:
533+
label: Icon
470534
- removeLabel:
471535
label: In-PR
536+
- removeLabel:
537+
label: Installer-Error
472538
- removeLabel:
473539
label: Installer-Issue
540+
- removeLabel:
541+
label: Interactive-Only-Download
474542
- removeLabel:
475543
label: Interactive-Only-Installer
476544
- removeLabel:
@@ -487,6 +555,8 @@ configuration:
487555
label: Manifest-Content-Incomplete
488556
- removeLabel:
489557
label: Manifest-Metadata-Consistency
558+
- removeLabel:
559+
label: Manifest-Singleton-Deprecated
490560
- removeLabel:
491561
label: Manifest-Version-Deprecated
492562
- removeLabel:

doc/Moderation.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,32 @@ Moderators are often the first to see and triage new issues, and so they have th
9090
* `Area-Client`
9191
* `Area-External`
9292
* `Area-Matching`
93+
* `Area-Publish-Pipeline`
94+
* `Area-Rebuild-Pipeline`
9395
* `Area-Scope`
9496
* `Area-Validation-Pipeline`
9597
* `Blocking-Issue`
9698
* `Dependencies`
9799
* `DriverInstall`
98100
* `DSC`
99101
* `Error-Hash-Mismatch`
102+
* `Error-Installer-Availability`
100103
* `Hardware`
101104
* `Help-Wanted`
102105
* `Highest-Version-Removal`
106+
* `Icon`
103107
* `In-PR`
108+
* `Installer-Error`
104109
* `Installer-Issue`
110+
* `Interactive-Only-Download`
105111
* `Interactive-Only-Installer`
106112
* `Issue-Bug`
107113
* `Issue-Docs`
108114
* `Issue-Feature`
109115
* `Last-Version-Removal`
110116
* `License-Blocks-Install`
111117
* `Manifest-Content-Incomplete`
118+
* `Manifest-Singleton-Deprecated`
112119
* `Moderator-Approved`
113120
* `Needs-Attention`
114121
* `Needs-Author-Feedback`

0 commit comments

Comments
 (0)