Skip to content

Commit 2d815bf

Browse files
Add policy for managing the untriaged label (#9599)
* Add policy for managing the untriaged label * Fix erroneous conditions Co-authored-by: Johannes Lampel <[email protected]> * Remove erroneous line after applying suggestion --------- Co-authored-by: Johannes Lampel <[email protected]>
1 parent 9abc3be commit 2d815bf

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/policies/untriaged.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
id: untriaged
2+
name: GitOps.PullRequestIssueManagement
3+
description: Manage the 'untriaged' label on issues
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- if:
12+
- payloadType: Issues
13+
- isOpen
14+
- not:
15+
isPartOfAnyMilestone
16+
- or:
17+
- isAction:
18+
action: Opened
19+
- isAction:
20+
action: Reopened
21+
- not:
22+
hasLabel:
23+
label: untriaged
24+
then:
25+
- addLabel:
26+
label: untriaged
27+
description: Add untriaged label to new/reopened issues without a milestone
28+
- if:
29+
- payloadType: Issues
30+
- or:
31+
- isAction:
32+
action: Closed
33+
- isPartOfAnyMilestone
34+
- hasLabel:
35+
label: untriaged
36+
then:
37+
- removeLabel:
38+
label: untriaged
39+
description: Remove untriaged label from issues when closed or added to a milestone

0 commit comments

Comments
 (0)