mirror of https://github.com/zulip/zulip.git
post-receive: Include an abbrev sha1 in the message
(imported from commit 97eea18bb4426270d085e398680f1db8028235db)
This commit is contained in:
parent
5a7ff70c11
commit
b3c029472a
|
@ -46,8 +46,8 @@ def process_push(oldrev, newrev, refname):
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"stream": "test" if refname == "refs/heads/test-post-receive" else "devel",
|
"stream": "test" if refname == "refs/heads/test-post-receive" else "devel",
|
||||||
"subject": "commits",
|
"subject": "commits",
|
||||||
"content": "The following commits were just pushed to `%s`:\n\n"
|
"content": "`%s` was deployed to `%s` with:\n\n" % (newrev[:12], refname.replace("refs/heads/", ""))
|
||||||
% (refname.replace("refs/heads/", ""),) + commits,
|
+ commits,
|
||||||
"recipient": "tabbott@humbughq.com",
|
"recipient": "tabbott@humbughq.com",
|
||||||
}
|
}
|
||||||
# Sleep a bit to give time for the server to restart.
|
# Sleep a bit to give time for the server to restart.
|
||||||
|
|
Loading…
Reference in New Issue