-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtasks.yml
193 lines (184 loc) · 5.36 KB
/
tasks.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
# Start process.
- if: on:post-opened
if-not: has-labels:phase/*
then: add-labels:phase/new
- if: on:post-closed
then:
- if: is:pr
then: comment:post-closed,post-closed-pr-maintainers
- if: is:issue
if-not: has-labels:phase/{no,solved}
then: comment:post-closed,post-closed-issue-maintainers
- if: on:post-reopened
then: remove-labels:phase/no
# New issue.
- if: on:post-labeled:phase/new
then:
- remove-labels:phase/{no,open,solved,yes}
- reopen-post
# Start auto triage.
- if: custom:check-template:missing
then:
- comment:template,new-template-missing
- unminimize-comments:template
- if: custom:check-template:incorrect
then:
- comment:template,new-template-check
- unminimize-comments:template
# Stop auto triage.
- if: custom:check-template:correct
then: add-labels:phase/open
# Update auto triage.
- if: on:post-edited
if-not: has-labels:phase/{no,solved,yes}
then:
- if: custom:check-template:missing
then:
- comment:template,new-template-missing
- unminimize-comments:template
- if: custom:check-template:incorrect
then:
- comment:template,new-template-check
- unminimize-comments:template
- if: custom:check-template:correct
then:
- add-labels:phase/open
- minimize-comments:template
- if: on:post-unlabeled:phase/new
then: minimize-comments:template
# Start manual triage.
- if: on:post-labeled:phase/open
then:
- remove-labels:phase/{new,no,solved,yes}
- reopen-post
- if: on:post-unlabeled:phase/open
then:
- remove-labels:open/*
- forget-comments:open
- minimize-comments:open
- if: on:post-labeled:open/multiple
then:
- remove-labels:open/{needs-info,needs-repro}
- reopen-post
- comment:open,open-multiple
- unminimize-comments:open
- if: on:post-unlabeled:open/multiple
then: minimize-comments:open
- if: on:post-labeled:open/needs-info
then:
- remove-labels:open/{multiple,needs-repro}
- reopen-post
- comment:open,open-needs-info
- unminimize-comments:open
- if: on:post-unlabeled:open/needs-info
then: minimize-comments:open
- if: on:post-labeled:open/needs-repro
then:
- remove-labels:open/{multiple,needs-info}
- reopen-post
- comment:open,open-needs-repro
- unminimize-comments:open
- if: on:post-unlabeled:open/needs-repro
then: minimize-comments:open
- if: on:post-labeled:open/*
then: add-labels:phase/open
- if: on:post-unlabeled:open/*
if-not: has-labels:open/*
then: remove-labels:phase/open
# Nope.
- if: on:post-labeled:phase/no
then:
- remove-labels:phase/{new,open,solved,yes}
- minimize-comments:post-closed
- forget-comments:post-closed
- close-post
- if: on:post-unlabeled:phase/no
then:
- remove-labels:no/*
- reopen-post
- minimize-comments:no
- forget-comments:no
- if: on:post-labeled:no/duplicate
then:
- remove-labels:no/{external,invalid,question,wontfix}
- unminimize-comments:no
- comment:no,no-duplicate
- sleep:30s
- if-not: marked-as-duplicate
then:
- comment:no-duplicate-maintainers
- forget-comments:no-duplicate-maintainers
- if: on:post-labeled:no/external
then:
- remove-labels:no/{duplicate,invalid,question,wontfix}
- sleep:30s
- if-not: recent-comment:team
then:
- comment:no,no-external-maintainers
- forget-comments:no
- if: on:post-labeled:no/invalid
then: remove-labels:no/{duplicate,external,question,wontfix}
- if: on:post-labeled:no/question
then:
- remove-labels:no/{duplicate,external,invalid,wontfix}
- sleep:30s
- if-not: recent-comment:team
then:
- unminimize-comments:no
- comment:no,no-question
- if: on:post-labeled:no/wontfix
then:
- remove-labels:no/{duplicate,external,invalid,question}
- if-not: recent-comment:team
then:
- comment:no,no-wontfix
- sleep:5m
- if: recent-comment:team
then:
- minimize-comments:no
- forget-comments:no
- if: on:post-labeled:no/*
then: add-labels:phase/no
- if: on:post-unlabeled:no/*
if-not: has-labels:no/*
then: remove-labels:phase/no
# Yep.
- if: on:post-labeled:yes/*
then: add-labels:phase/yes
- if: on:post-unlabeled:yes/*
if-not: has-labels:yes/*
then: remove-labels:phase/yes
# Confirmed!
- if: on:post-labeled:phase/yes
then:
- remove-labels:phase/{new,no,open,solved}
- reopen-post
- unminimize-comments:yes-maintainers
- comment:yes-maintainers
- if: on:post-unlabeled:phase/yes
then:
- remove-labels:yes/*
- minimize-comments:yes-maintainers
- forget-comments:yes-maintainers
# Solved: leave the rest to maintainers
- if: on:post-labeled:phase/solved
then:
- remove-labels:phase/{new,no,open,yes}
- remove-labels:{help-wanted,good-first-issue}
- minimize-comments:post-closed
- forget-comments:post-closed
# Message when no phase labels exist.
- if: on:post-unlabeled:phase/*
if-not: has-labels:phase/*
then: comment:phaseless
- if: on:post-labeled:phase/*
then:
- minimize-comments:phaseless
- forget-comments:phaseless
# SemVer
- if: on:post-labeled:semver/patch
then: remove-labels:semver/{minor,major}
- if: on:post-labeled:semver/minor
then: remove-labels:semver/{patch,major}
- if: on:post-labeled:semver/major
then: remove-labels:semver/{patch,minor}