-
Notifications
You must be signed in to change notification settings - Fork 39
295 lines (255 loc) · 9.42 KB
/
issue_labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
name: 'Issue Labels'
on:
issues:
types: [opened, reopened, closed]
permissions:
issues: write
concurrency:
group: lock
jobs:
# Check Labels - https://github.com/mheap/github-action-required-labels
add_label_user_close_check:
name: Close Issue Label - Check
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
outputs:
status: ${{ steps.add_label_user_close_check_main.outputs.status }}
steps:
- id: add_label_user_close_check_main
uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 0
labels: "Bug, Enhancement"
exit_type: success
# Add Labels - https://github.com/actions-cool/issues-helper
add_label_user_close_act:
name: Close Issue Label - Cancel
needs: add_label_user_close_check
runs-on: ubuntu-20.04
if: needs.add_label_user_close_check.outputs.status == 'success'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Cancelled'
add_label_user_open_enhance:
name: Enhancement Request Label
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'opened' && contains(github.event.issue.body, 'Suggested Feature') && contains(github.event.issue.body, 'Background Information') && contains(github.event.issue.body, 'Additional Context')
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Enhancement'
# Add Labels - https://github.com/actions-cool/issues-helper
add_label_user_open:
name: Default Issue Label
needs: [add_label_user_open_enhance]
runs-on: ubuntu-20.04
if: ${{ !failure() && github.actor != 'dakanji' && github.event.action == 'opened' }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Triage'
# Check Similarity - https://github.com/actions-cool/issues-similarity-analysis
similarity_analysis:
name: Check Similarity
needs: [add_label_user_open]
runs-on: ubuntu-20.04
if: ${{ !failure() && github.actor != 'dakanji' && github.event.action == 'opened' }}
steps:
- uses: actions-cool/issues-similarity-analysis@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
since-days: 450
filter-threshold: 0.51
comment-title: '### Similar Items'
comment-body: '${index}. [Similarity Rating: ${similarity}] ... [${title}](https://github.com/${{ github.repository }}/issues/${number})'
show-footer: false
add_label_base_reopen:
name: Reopen Issue Label - Base
runs-on: ubuntu-20.04
if: github.actor == 'dakanji' && github.event.action == 'reopened'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Not-Planned,Tagged,Stale,Cannot-Replicate,Known-Issue,Incomplete,Uncertain,Resolved,Unclear,Invalid,Unclear'
add_label_user_reopen:
name: Reopen Issue Label - User
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'reopened'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Triage'
# Del Labels - https://github.com/actions-cool/issues-helper
del_label_user_reopen:
name: Remove Cancelled Label
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'reopened'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Cancelled'
del_label_user_close:
name: Remove Misc Labels
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Stale,Tagged,Triage,Cannot-Replicate,Known-Issue,Incomplete,Uncertain,Unclear,Invalid,Queries,Unclear'
# Check Labels - https://github.com/mheap/github-action-required-labels
bounce_bug_check1:
name: Bounce Bug - Check1
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
outputs:
status: ${{ steps.bounce_bug_check1_main.outputs.status }}
steps:
- id: bounce_bug_check1_main
uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: "Bug"
exit_type: success
# Reopen Issue - https://github.com/actions-cool/issues-helper
bounce_bug_act1:
name: Bounce Bug - Act1
needs: [bounce_bug_check1]
runs-on: ubuntu-20.04
if: needs.bounce_bug_check1.outputs.status == 'success'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'open-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
# Reopen Issue - https://github.com/actions-cool/issues-helper
bounce_bug_act2:
name: Bounce Bug - Act2
needs: [bounce_bug_act1]
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Please do not close accepted confirmed bugs in future.
Work has aleady started, or is planned, on such items.
# Check Labels - https://github.com/mheap/github-action-required-labels
bounce_enhance_check1:
name: Bounce Enhance - Check1
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
outputs:
status: ${{ steps.bounce_enhance_check1_main.outputs.status }}
steps:
- id: bounce_enhance_check1_main
uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: "Enhancement"
exit_type: success
# Check Labels - https://github.com/mheap/github-action-required-labels
bounce_enhance_check2:
name: Bounce Enhance - Check2
needs: [bounce_enhance_check1]
runs-on: ubuntu-20.04
if: needs.bounce_enhance_check1.outputs.status == 'success'
steps:
- uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: "Accepted"
# Reopen Issue - https://github.com/actions-cool/issues-helper
bounce_enhance_act1:
name: Bounce Enhance - Act1
needs: [bounce_enhance_check2]
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'open-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
# Reopen Issue - https://github.com/actions-cool/issues-helper
bounce_enhance_act2:
name: Bounce Enhance - Act2
needs: [bounce_enhance_act1]
runs-on: ubuntu-20.04
if: github.actor != 'dakanji' && github.event.action == 'closed'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Please do not close accepted `Accepted` Enhancements.
Work has aleady started, or is planned, on such items.
# Check Labels - https://github.com/mheap/github-action-required-labels
handle_bug_tag_check:
name: Handle Bug Tag - Check
runs-on: ubuntu-20.04
if: github.actor == 'dakanji' && github.event.action == 'closed'
outputs:
status: ${{ steps.handle_bug_tag_check_main.outputs.status }}
steps:
- id: handle_bug_tag_check_main
uses: mheap/github-action-required-labels@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: "Bug"
exit_type: success
# Bug Close Tag - https://github.com/actions-cool/issues-helper
handle_bug_act:
name: Handle Bug Tag - Act
needs: [handle_bug_tag_check]
runs-on: ubuntu-20.04
if: needs.handle_bug_tag_check.outputs.status == 'success'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Tagged'