1
- id :
2
- name : GitOps.PullRequestIssueManagement
3
- description : GitOps.PullRequestIssueManagement primitive
1
+ id : label.issues
2
+ name : GitOps.IssueManagement
3
+ description : Management logic around issues
4
4
owner :
5
5
resource : repository
6
6
disabled : false
@@ -24,6 +24,109 @@ configuration:
24
24
label : okr-quality
25
25
26
26
eventResponderTasks :
27
+ - description : >-
28
+ Add "not triaged" label when:
29
+ * Issue is opened
30
+ * Issue is reopened
31
+ * 'needs-more-info' label removed
32
+ if:
33
+ - payloadType: Issues
34
+ - or:
35
+
36
+ - or:
37
+ - isAction:
38
+ action: Opened
39
+ - isAction:
40
+ action: Reopened
41
+
42
+ - labelRemoved:
43
+ label: 'needs-more-info'
44
+ then:
45
+ - addLabel: ':watch: Not Triaged'
46
+
47
+ - description : >-
48
+ Remove "not triaged" label when:
49
+ * Issue author closes the issue
50
+ * reQUEST label is added
51
+ if:
52
+ - payloadType: Issues
53
+ - hasLabel:
54
+ label: ':watch: Not Triaged'
55
+ - or:
56
+ - and:
57
+ - isAction:
58
+ action: Closed
59
+ - isActivitySender:
60
+ issueAuthor: true
61
+
62
+ - labelAdded:
63
+ label: ':world_map: reQUEST'
64
+ then:
65
+ - removeLabel: ':watch: Not Triaged'
66
+
67
+ - description : >-
68
+ When the label "mapQUEST" is added to an issue
69
+ * Remove label "mapQUEST"
70
+ if:
71
+ - or:
72
+ - payloadType: Issues
73
+ - payloadType: Pull_Request
74
+
75
+ - labelAdded:
76
+ label: ':world_map: mapQUEST'
77
+ then:
78
+ - removeLabel: ':world_map: mapQUEST'
79
+
80
+ - description : Label dependabot issues
81
+ if :
82
+ - payloadType : Issues
83
+ - isAction :
84
+ action : Opened
85
+ - or :
86
+ - isActivitySender :
87
+ user : dependabot
88
+ - isActivitySender :
89
+ user : dependabot[bot]
90
+ then :
91
+ - addLabel :
92
+ label : dependencies
93
+
94
+ - description : Remove "won't fix" label when issue is reopened
95
+ if :
96
+ - payloadType : Issues
97
+ - isAction :
98
+ action : Reopened
99
+ - hasLabel :
100
+ label : " won't fix"
101
+
102
+ then :
103
+ - removeLabel :
104
+ label : " won't fix"
105
+
106
+ - description : Remove "in-progress" label when issue closed
107
+ if :
108
+ - payloadType : Issues
109
+ - isAction :
110
+ action : Closed
111
+ - hasLabel :
112
+ label : ' in-progress'
113
+
114
+ then :
115
+ - removeLabel :
116
+ label : ' in-progress'
117
+
118
+ - description : Add "resolved-by-customer" label when issue closed by author.
119
+ if :
120
+ - payloadType : Issues
121
+ - isAction :
122
+ action : Closed
123
+ - isActivitySender :
124
+ issueAuthor : true
125
+
126
+ then :
127
+ - addLabel :
128
+ label : resolved-by-customer
129
+
27
130
- description : Add in-pr label to issues
28
131
if :
29
132
- payloadType : Pull_Request
0 commit comments