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

Fix issues #215

Merged
merged 2 commits into from
May 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions highfive/configs/rust-lang/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
"command": "@highfive: run-doc-ui",
"reviewers": ["@GuillaumeGomez"]
},
"src/doc": {
"message": "Some changes occurred in HTML/CSS.",
"reviewers": ["@GuillaumeGomez"]
},
"src/librustdoc/": {
"command": "@highfive: run-doc-ui"
},
Expand Down
8 changes: 6 additions & 2 deletions highfive/newpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ def set_assignee(self, assignee, owner, repo, issue, user, author, to_mention):
for mention in to_mention:
if len(message) > 0:
message += '\n\n'
message += "%s\n\ncc %s" % (mention['message'],
','.join([x for x in mention['reviewers'] if x != user]))
msg = mention.get('message')
if msg is not None:
msg += '\n\n'
else:
msg = ''
message += "%scc %s" % (msg, ','.join([x for x in mention['reviewers'] if x != user]))
cmd = mention.get('command')
if cmd is not None:
commands[cmd] = self.payload['pull_request', 'head', 'sha']
Expand Down