Skip to content

Commit a1aff0f

Browse files
authored
Automatically add 'untriaged' label to new issues without milestones (#6060)
1 parent 41bbedd commit a1aff0f

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/policies/resourceManagement.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ configuration:
214214
- isAction:
215215
action: Closed
216216
then:
217-
- removeLabel:
218-
label: untriaged
219217
- removeLabel:
220218
label: 'work in progress :construction:'
221219
- removeLabel:

.github/policies/untriaged.yml

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

0 commit comments

Comments
 (0)