Skip to content

Commit b454474

Browse files
committed
Tidy
1 parent a4c317e commit b454474

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/tools/publish_toolstate.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def issue(
7575
After merging PR {}, I observed that the tool {} no longer builds.
7676
A follow-up PR to the repository {} is needed to fix the fallout.
7777
78-
cc @{}, do you think you would have time to do the follow-up work? If so, that would be great!
78+
cc @{}, do you think you would have time to do the follow-up work?
79+
If so, that would be great!
7980
8081
cc @{}, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization.
8182
@@ -144,7 +145,10 @@ def update_latest(
144145
build_failed = True
145146

146147
if build_failed:
147-
issue(tool, MAINTAINERS.get(tool), relevant_pr_number, relevant_pr_user, pr_reviewer)
148+
issue(
149+
tool, MAINTAINERS.get(tool),
150+
relevant_pr_number, relevant_pr_user, pr_reviewer,
151+
)
148152

149153
if changed:
150154
status['commit'] = current_commit
@@ -168,7 +172,10 @@ def update_latest(
168172
github_token = sys.argv[4]
169173

170174
# assume that PR authors are also owners of the repo where the branch lives
171-
relevant_pr_match = re.search('Auto merge of #([0-9]+) - ([^:]+):[^,]+ r=([^\s]+)', cur_commit_msg)
175+
relevant_pr_match = re.search(
176+
'Auto merge of #([0-9]+) - ([^:]+):[^,]+ r=([^\s]+)',
177+
cur_commit_msg,
178+
)
172179
if relevant_pr_match:
173180
number = relevant_pr_match.group(1)
174181
relevant_pr_user = relevant_pr_match.group(2)

0 commit comments

Comments
 (0)