39
39
'rustc-dev-guide' : {'mark-i-m' , 'spastorino' , 'amanjeev' , 'JohnTitor' },
40
40
}
41
41
42
+ LABELS = {
43
+ 'miri' : ['A-miri' , 'C-bug' ],
44
+ 'rls' : ['A-rls' , 'C-bug' ],
45
+ 'rustfmt' : ['C-bug' ],
46
+ 'book' : ['C-bug' ],
47
+ 'nomicon' : ['C-bug' ],
48
+ 'reference' : ['C-bug' ],
49
+ 'rust-by-example' : ['C-bug' ],
50
+ 'embedded-book' : ['C-bug' ],
51
+ 'edition-guide' : ['C-bug' ],
52
+ 'rustc-dev-guide' : ['C-bug' ],
53
+ }
54
+
42
55
REPOS = {
43
56
'miri' : 'https://github.com/rust-lang/miri' ,
44
57
'rls' : 'https://github.com/rust-lang/rls' ,
@@ -132,6 +145,7 @@ def issue(
132
145
assignees ,
133
146
relevant_pr_number ,
134
147
relevant_pr_user ,
148
+ labels ,
135
149
):
136
150
# Open an issue about the toolstate failure.
137
151
if status == 'test-fail' :
@@ -155,6 +169,7 @@ def issue(
155
169
)),
156
170
'title' : '`{}` no longer builds after {}' .format (tool , relevant_pr_number ),
157
171
'assignees' : list (assignees ),
172
+ 'labels' : labels ,
158
173
})
159
174
print ("Creating issue:\n {}" .format (request ))
160
175
response = urllib2 .urlopen (urllib2 .Request (
@@ -235,7 +250,7 @@ def update_latest(
235
250
try :
236
251
issue (
237
252
tool , create_issue_for_status , MAINTAINERS .get (tool , '' ),
238
- relevant_pr_number , relevant_pr_user ,
253
+ relevant_pr_number , relevant_pr_user , LABELS . get ( tool , '' ),
239
254
)
240
255
except urllib2 .HTTPError as e :
241
256
# network errors will simply end up not creating an issue, but that's better
0 commit comments