Skip to content

Commit 96890da

Browse files
denelonCopilot
andcommitted
Policy bot improvements: regex casing, triageLabels, automerge removal
- Convert regex patterns to (?in) inline flags with label-matching casing - Add Needs-Author-Feedback back to triageLabels (safe for issues) - Remove unused automergeTriggers.yml policy - Fix Needs-Triage removal to exclude auto-applied labels - Fix stale issue flow and issueUpdated handlers Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2e56941 commit 96890da

5 files changed

Lines changed: 158 additions & 95 deletions

.github/policies/automergeTriggers.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/policies/labelManagement.issueUpdated.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ configuration:
3030
triggerOnOwnActions: False
3131
- description: Clean email replies on every comment
3232
if:
33-
- payloadType: Issue_Comment
33+
- or:
34+
- payloadType: Issue_Comment
35+
- payloadType: Pull_Request_Review_Comment
3436
then:
3537
- cleanEmailReply
3638
- description: Remove "Help-Wanted" label when an issue goes into PR

.github/policies/labelManagement.triageLabels.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ configuration:
1414
if:
1515
- payloadType: Issues
1616
- or:
17+
# Area labels — only applied manually during triage
1718
- labelAdded:
1819
label: Area-Accessibility
1920
- labelAdded:
@@ -46,10 +47,15 @@ configuration:
4647
label: Area-Sorting
4748
- labelAdded:
4849
label: Area-User-Interface
49-
- labelAdded:
50-
label: Blocking-Issue
50+
# Issue type / context / feature labels — manually applied
5151
- labelAdded:
5252
label: Breaking-Change
53+
- labelAdded:
54+
label: Context-Elevated-User
55+
- labelAdded:
56+
label: Context-User
57+
- labelAdded:
58+
label: Context-System
5359
- labelAdded:
5460
label: Dependencies
5561
- labelAdded:
@@ -60,20 +66,36 @@ configuration:
6066
label: In-PR
6167
- labelAdded:
6268
label: Interactive-Only-Installer
69+
- labelAdded:
70+
label: Issue-Bug
71+
- labelAdded:
72+
label: Issue-Docs
73+
- labelAdded:
74+
label: Issue-Feature
6375
- labelAdded:
6476
label: msstore
6577
- labelAdded:
6678
label: Needs-Attention
6779
- labelAdded:
68-
label: Needs-Author-Feedback
80+
label: Needs-Repro
6981
- labelAdded:
7082
label: Portable
7183
- labelAdded:
7284
label: Public-Service-Announcement
7385
- labelAdded:
7486
label: Side-By-Side
87+
- labelAdded:
88+
label: Windows-Sandbox
7589
- labelAdded:
7690
label: Zipped-Binary
91+
# Needs-Author-Feedback is only auto-applied on PR open (localization),
92+
# not on issue open, so it is safe to include here.
93+
- labelAdded:
94+
label: Needs-Author-Feedback
95+
# NOTE: Command-*, DSC-Resource, PowerShell, and Blocking-Issue
96+
# are excluded because they are auto-applied by issueOpened and
97+
# would prematurely remove Needs-Triage before a human has triaged
98+
# the issue.
7799
then:
78100
- removeLabel:
79101
label: Needs-Triage

0 commit comments

Comments
 (0)