Send review requests to stream review.

(imported from commit 6e2e5ad2a4fadd2693341cb044c3e2152c787952)
This commit is contained in:
Tim Abbott
2013-02-01 16:16:49 -05:00
parent df5cef6a0d
commit eb4930591d

View File

@@ -335,8 +335,10 @@ def main(args):
if key == "Subject": if key == "Subject":
content += str(value) content += str(value)
client.send_message({'type': "private", subject = "Reviews for " + ", ".join(x.split("@")[0] for x in opts.reviewers)
'to': opts.reviewers, client.send_message({'type': "stream",
'subject': subject[:60],
'to': "review",
'content': content}) 'content': content})
if os.environ.get('REVIEW_USE_SENDMAIL', ''): if os.environ.get('REVIEW_USE_SENDMAIL', ''):