Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 401cb07

Browse files
authored
Merge pull request #215 from GuillaumeGomez/fix-issues
Fix issues
2 parents 7d54c0a + aae5805 commit 401cb07

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

highfive/configs/rust-lang/rust.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@
4747
"command": "@highfive: run-doc-ui",
4848
"reviewers": ["@GuillaumeGomez"]
4949
},
50-
"src/doc": {
51-
"message": "Some changes occurred in HTML/CSS.",
52-
"reviewers": ["@GuillaumeGomez"]
53-
},
5450
"src/librustdoc/": {
5551
"command": "@highfive: run-doc-ui"
5652
},

highfive/newpr.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,12 @@ def set_assignee(self, assignee, owner, repo, issue, user, author, to_mention):
130130
for mention in to_mention:
131131
if len(message) > 0:
132132
message += '\n\n'
133-
message += "%s\n\ncc %s" % (mention['message'],
134-
','.join([x for x in mention['reviewers'] if x != user]))
133+
msg = mention.get('message')
134+
if msg is not None:
135+
msg += '\n\n'
136+
else:
137+
msg = ''
138+
message += "%scc %s" % (msg, ','.join([x for x in mention['reviewers'] if x != user]))
135139
cmd = mention.get('command')
136140
if cmd is not None:
137141
commands[cmd] = self.payload['pull_request', 'head', 'sha']

0 commit comments

Comments
 (0)