Skip to content

Commit 1d1919f

Browse files
committed
add the gitops automation for the untriaged label
1 parent fab13a3 commit 1d1919f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
id: untriaged
2+
name: GitOps.PullRequestIssueManagement
3+
description: Manage the 'untriaged' label on issues
4+
resource: repository
5+
6+
configuration:
7+
resourceManagementConfiguration:
8+
eventResponderTasks:
9+
- description: Add untriaged label to new/reopened issues without a milestone
10+
if:
11+
- payloadType: Issues
12+
- isOpen
13+
- not:
14+
isPartOfAnyMilestone
15+
- or:
16+
- isAction:
17+
action: Opened
18+
- isAction:
19+
action: Reopened
20+
- not:
21+
hasLabel:
22+
label: untriaged
23+
then:
24+
- addLabel:
25+
label: untriaged
26+
27+
- description: Remove untriaged label from issues when closed or added to 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

0 commit comments

Comments
 (0)