Shorter topics for git/svn integration.

(imported from commit 6c9822f6ba383d885e48d3bb64c30e49ea8cf1e5)
This commit is contained in:
Waseem Daher 2013-12-11 11:41:54 -05:00
parent 20d36e5df8
commit 9faec9d778
3 changed files with 8 additions and 8 deletions

View file

@ -36,15 +36,15 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
# Returns a dictionary encoding the stream and subject to send the
# notification to (or None to send no notification).
#
# The default code below will send every commit except for the "master-plan"
# and "secret" repos to
# The default code below will send every commit except for the "evil-master-plan"
# and "my-super-secret-repository" repos to
# * stream "commits"
# * subject "deploy => branch_name" (using a pretty unicode right arrow)
# * topic "branch_name"
def commit_notice_destination(path, commit):
repo = path.split('/')[-1]
if repo not in ["evil-master-plan", "my-super-secret-repository"]:
return dict(stream = "commits",
subject = u"deploy \u21D2 %s" % (repo,))
subject = u"%s" % (repo,))
# Return None for cases where you don't want a notice sent
return None