post-receive: Send test-post-receive pushes to class test

(imported from commit 8f187464a4d82da071ffed79abf33ea05b999b95)
This commit is contained in:
Keegan McAllister 2012-10-04 17:31:47 -04:00
parent 33a5157afd
commit bfa24d75b6

View File

@ -44,7 +44,7 @@ def process_push(oldrev, newrev, refname):
commits = subprocess.check_output(["git", "log", "--reverse", "--pretty=- %s", "%s..%s" % (oldrev, newrev)])
message_data = {
"type": "class",
"class": "devel",
"class": "test" if refname == "refs/heads/test-post-receive" else "devel",
"instance": "commits",
"content": "The following commits were just pushed to `%s`:\n\n"
% (refname.replace("refs/heads/", ""),) + commits,