mirror of https://github.com/zulip/zulip.git
review: Send @username syntax rather than @username@humbughq.com
(imported from commit ab7d1120aba829fd629e705409b3677e6cb49dbd)
This commit is contained in:
parent
c57368d71e
commit
e4d6a6d3cd
14
tools/review
14
tools/review
|
@ -328,14 +328,14 @@ def main(args):
|
|||
email=get_current_user_email(repo),
|
||||
site="https://staging.humbughq.com",
|
||||
verbose=True)
|
||||
content = ""
|
||||
for (key, value) in headers:
|
||||
if key == "To":
|
||||
content += "Sent a review request to @%s for\n" % (value,)
|
||||
if key == "Subject":
|
||||
content += str(value)
|
||||
|
||||
subject = "Reviews for " + ", ".join(x.split("@")[0] for x in opts.reviewers)
|
||||
reviewer_usernames = [x.split("@")[0] for x in opts.reviewers]
|
||||
|
||||
content = ("Sent a review request to %s for\n%s" %
|
||||
(' '.join('@'+x for x in reviewer_usernames),
|
||||
msg.get('Subject', '<unknown>')))
|
||||
subject = "Reviews for " + ", ".join(reviewer_usernames)
|
||||
|
||||
client.send_message({'type': "stream",
|
||||
'subject': subject[:60],
|
||||
'to': "review",
|
||||
|
|
Loading…
Reference in New Issue