Skip to content

Commit c13f950

Browse files
authored
Add 'remove needs info' condition to issue updater (#68)
The needs info and needs repdoduction labels should be cleared when an issue is updated.
1 parent 70ad203 commit c13f950

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/policies/resourceManagement.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,40 @@ configuration:
117117
- addReply:
118118
reply: Hi @${issueAuthor}. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
119119
description: Add comment when 'needs reproduction' is applied to issue
120+
- if:
121+
- payloadType: Issue_Comment
122+
- isAction:
123+
action: Created
124+
- isOpen
125+
- hasLabel:
126+
label: needs info
127+
- not:
128+
activitySenderHasPermission:
129+
permission: Admin
130+
- not:
131+
activitySenderHasPermission:
132+
permission: Write
133+
then:
134+
- removeLabel:
135+
label: needs info
136+
description: Remove needs info label
137+
- if:
138+
- payloadType: Issue_Comment
139+
- isAction:
140+
action: Created
141+
- isOpen
142+
- hasLabel:
143+
label: needs reproduction
144+
- not:
145+
activitySenderHasPermission:
146+
permission: Admin
147+
- not:
148+
activitySenderHasPermission:
149+
permission: Write
150+
then:
151+
- removeLabel:
152+
label: needs reproduction
153+
description: Remove needs reproduction label
120154
- if:
121155
- payloadType: Issues
122156
- hasLabel:

0 commit comments

Comments
 (0)