zulip_git_config: Add old default branch name for compatibility.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-08-31 15:04:07 -07:00
parent 5da0857d51
commit bdc139e9ed

View file

@ -24,7 +24,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
# * topic "main" # * topic "main"
# 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: str, branch: str, commit: str) -> Optional[Dict[str, str]]: 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 dict(stream=STREAM_NAME, subject=f"{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