From 3e2c0c7a8a3fa3270e3826fffe19a350bb48e68d Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 18 Mar 2013 18:17:16 -0400 Subject: [PATCH] humbug_git_config: Send test-post-receive notices to stream "test" (imported from commit e14606237a020218c7306bf10dda7a474336f199) --- bots/humbug_git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/humbug_git_config.py b/bots/humbug_git_config.py index b304b62..c7dbe9f 100644 --- a/bots/humbug_git_config.py +++ b/bots/humbug_git_config.py @@ -24,7 +24,7 @@ HUMBUG_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # And similarly for branch "test-post-receive" (for use when testing). def commit_notice_destination(repo, branch, commit): 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,)) # Return None for cases where you don't want a notice sent