Commit 4471ed82 authored by Aaron Wells's avatar Aaron Wells

Telling change_merged to allow the "topic" flag added in gerrit 2.5.

... also updating the documentation link to point to the docs on
reviews.mahara.org
parent 3c63a65d
......@@ -156,8 +156,10 @@ def submit_to_cia(project, commit, branch, git_log):
body.removeChild(commit)
def main():
# https://gerrit.googlecode.com/svn/documentation/2.1.6/config-hooks.html#change-merged
gerrit_args = ['change=', 'change-url=', 'project=', 'branch=', 'submitter=', 'commit=']
# See https://reviews.mahara.org/Documentation/config-hooks.html
# This should be replaced with argparse instead of getopt, when
# we upgrade the server to python 3.2 or later.
gerrit_args = ['change=', 'change-url=', 'project=', 'branch=', 'topic=', 'submitter=', 'commit=']
args, unused = getopt(sys.argv[1:], '', gerrit_args)
change_url = project = branch = submitter = commit = None
......
......@@ -71,7 +71,9 @@ def send_bug_mail(bug_number, change_url, project, commit, uploader, branch, git
s.quit()
def main():
# See https://git.eclipse.org/r/Documentation/config-hooks.html#_patchset_created
# See https://reviews.mahara.org/Documentation/config-hooks.html
# This should be replaced with argparse instead of getopt, when
# we upgrade the server to python 3.2 or later.
gerrit_args = ['change=', 'is-draft=', 'change-url=', 'project=', 'branch=', 'topic=', 'uploader=', 'commit=', 'patchset=']
args, unused = getopt(sys.argv[1:], '', gerrit_args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment