From bdc139e9ed0c616f076c5450f97c27e85bc37539 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 31 Aug 2021 15:04:07 -0700 Subject: [PATCH] zulip_git_config: Add old default branch name for compatibility. Signed-off-by: Anders Kaseorg --- zulip/integrations/git/zulip_git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/integrations/git/zulip_git_config.py b/zulip/integrations/git/zulip_git_config.py index c9ebe17..2732cc4 100644 --- a/zulip/integrations/git/zulip_git_config.py +++ b/zulip/integrations/git/zulip_git_config.py @@ -24,7 +24,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" # * topic "main" # And similarly for branch "test-post-receive" (for use when testing). def commit_notice_destination(repo: str, branch: str, commit: str) -> Optional[Dict[str, str]]: - if branch in ["main", "test-post-receive"]: + if branch in ["main", "master", "test-post-receive"]: return dict(stream=STREAM_NAME, subject=f"{branch}") # Return None for cases where you don't want a notice sent