@@ -46,11 +46,11 @@ def read_current_status(current_commit, path):
46
46
return {}
47
47
48
48
def issue (
49
- title ,
50
49
tool ,
51
50
maintainers ,
52
51
relevant_pr_number ,
53
52
relevant_pr_user ,
53
+ msg ,
54
54
):
55
55
# Open an issue about the toolstate failure.
56
56
gh_url = 'https://api.github.com/repos/rust-lang/rust/issues'
@@ -64,8 +64,11 @@ def issue(
64
64
65
65
If you have the time it would be great if you could open a PR against {} that
66
66
fixes the fallout from your PR.
67
- ''' .format (relevant_pr_user , relevant_pr_number , tool , tool ),
68
- 'title' : title ,
67
+
68
+ {}
69
+
70
+ ''' .format (relevant_pr_user , relevant_pr_number , tool , tool , msg ),
71
+ 'title' : '💔 {}' .format (tool ),
69
72
'assignees' : assignees ,
70
73
'labels' : ['T-compiler' , 'I-nominated' ],
71
74
}),
@@ -105,6 +108,7 @@ def update_latest(
105
108
for status in latest :
106
109
tool = status ['tool' ]
107
110
changed = False
111
+ failures = ''
108
112
109
113
for os , s in current_status .items ():
110
114
old = status [os ]
@@ -120,7 +124,11 @@ def update_latest(
120
124
.format (tool , os , old , new )
121
125
message += '{} (cc {}, @rust-lang/infra).\n ' \
122
126
.format (title , MAINTAINERS .get (tool ))
123
- issue (title , tool , MAINTAINERS .get (tool ), relevant_pr_number , relevant_pr_user )
127
+ failures += title
128
+ failures += '\n '
129
+
130
+ if failures != '' :
131
+ issue (tool , MAINTAINERS .get (tool ), relevant_pr_number , relevant_pr_user , failures )
124
132
125
133
if changed :
126
134
status ['commit' ] = current_commit
0 commit comments