mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
humbug_git_config: Send test-post-receive notices to stream "test"
(imported from commit e14606237a020218c7306bf10dda7a474336f199)
This commit is contained in:
@@ -24,7 +24,7 @@ HUMBUG_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|||||||
# And similarly for branch "test-post-receive" (for use when testing).
|
# And similarly for branch "test-post-receive" (for use when testing).
|
||||||
def commit_notice_destination(repo, branch, commit):
|
def commit_notice_destination(repo, branch, commit):
|
||||||
if branch in ["master", "prod", "test-post-receive"]:
|
if branch in ["master", "prod", "test-post-receive"]:
|
||||||
return dict(stream = "commits",
|
return dict(stream = 'test' if 'test-' in branch else 'commits',
|
||||||
subject = u"deploy \u21D2 %s" % (branch,))
|
subject = u"deploy \u21D2 %s" % (branch,))
|
||||||
|
|
||||||
# Return None for cases where you don't want a notice sent
|
# Return None for cases where you don't want a notice sent
|
||||||
|
|||||||
Reference in New Issue
Block a user