Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add the gitops automation for the untriaged label
  • Loading branch information
baronfel committed Sep 16, 2025
commit 1d1919f75a2540a491db93152e44c6ad9322a2e9
38 changes: 38 additions & 0 deletions .github/policies/untriaged-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
id: untriaged
name: GitOps.PullRequestIssueManagement
description: Manage the 'untriaged' label on issues
resource: repository

configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Add untriaged label to new/reopened issues without a milestone
if:
- payloadType: Issues
- isOpen
- not:
isPartOfAnyMilestone
- or:
- isAction:
action: Opened
- isAction:
action: Reopened
- not:
hasLabel:
label: untriaged
then:
- addLabel:
label: untriaged

- description: Remove untriaged label from issues when closed or added to a milestone
if:
- payloadType: Issues
- or:
- isAction:
action: Closed
- isPartOfAnyMilestone
- hasLabel:
label: untriaged
then:
- removeLabel:
label: untriaged