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

Commit 63095a2

Browse files
Start rustdoc UI tests when a PR is opened with changes on HTML/CSS/JS
1 parent 8810737 commit 63095a2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

highfive/configs/rust-lang/rust.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
},
3939
"mentions": {
4040
"src/librustdoc/html/static": {
41-
"message": "Some changes occurred in HTML/CSS.",
41+
"message": "Some changes occurred in HTML/CSS/JS.",
42+
"reviewers": ["@GuillaumeGomez"]
43+
},
44+
"src/librustdoc/html/static/themes": {
45+
"message": "Some changes occurred in HTML/CSS themes.",
4246
"reviewers": ["@GuillaumeGomez"]
4347
},
4448
"src/src/doc": {

highfive/newpr.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,21 @@ def set_assignee(self, assignee, owner, repo, issue, user, author, to_mention):
124124
client.send_then_quit("{}: ping to review issue https://www.github.com/{}/{}/pull/{} by {}."
125125
.format(irc_name_of_reviewer, owner, repo, issue, author))
126126

127+
commands = {}
127128
if to_mention and len(to_mention) > 0:
128129
message = ''
129130
for mention in to_mention:
130131
if len(message) > 0:
131132
message += '\n\n'
132133
message += "%s\n\ncc %s" % (mention['message'],
133134
','.join([x for x in mention['reviewers'] if x != user]))
135+
cmd = mention.get('command')
136+
if cmd is not None:
137+
commands[cmd] = self.payload['pull_request', 'head', 'sha']
138+
for cmd in commands:
139+
if len(message) > 0:
140+
message += '\n\n'
141+
message += "%s %s" % (cmd, commands[cmd])
134142
self.post_comment(message, owner, repo, issue)
135143

136144
def get_irc_nick(self, gh_name):

0 commit comments

Comments
 (0)