Add gerrit change hook parameters for Gerrit 2.11
Gerrit 2.11 provides additional change hook parameters. This change
updates hook scripts to match.
Hooks in Gerrit 2.11:
hook[patchset-created] output:
--change I0bfa692dce4851bfd4acf75f5179d431db65357f --is-draft false
--kind REWORK --change-url https://review-dev.openstack.org/5377
--change-owner Khai Do (zaro0508@gmail.com) --project gtest-org/gtest
--branch master --topic 5310 --uploader Khai Do (zaro0508@gmail.com)
--commit cc9334dce5db9aa4db385acb17950f2295d6b948 --patchset 1
hook[change-abandoned] output:
--change Icaf1f76c1cc0c257bb30cca9d52aa5fa96f74980
--change-url https://review-dev.openstack.org/5376
--change-owner Khai Do (zaro0508@gmail.com) --project gtest-org/gtest
--branch master --topic 5310 --abandoner Khai Do (zaro0508@gmail.com)
--commit 313164c9d75e00922976735ea1046b2d76b0b92b --reason bad fix2
hook[change-merged] output:
--change I0bfa692dce4851bfd4acf75f5179d431db65357f
--change-url https://review-dev.openstack.org/5377
--change-owner Khai Do (zaro0508@gmail.com) --project gtest-org/gtest
--branch master --topic 5310 --submitter Jenkins
--commit cc9334dce5db9aa4db385acb17950f2295d6b948
--newrev cc9334dce5db9aa4db385acb17950f2295d6b948
Change-Id: Ib514f6b213a8248c225a6e4293c25c2a23a16074
diff --git a/jeepyb/cmd/notify_impact.py b/jeepyb/cmd/notify_impact.py
index db0d859..e665c05 100644
--- a/jeepyb/cmd/notify_impact.py
+++ b/jeepyb/cmd/notify_impact.py
@@ -246,8 +246,13 @@
parser.add_argument('--topic', default=None)
parser.add_argument('--change-owner', default=None)
+ # patchset-abandoned
+ parser.add_argument('--abandoner', default=None)
+ parser.add_argument('--reason', default=None)
+
# change-merged
parser.add_argument('--submitter', default=None)
+ parser.add_argument('--newrev', default=None)
# patchset-created
parser.add_argument('--uploader', default=None)
diff --git a/jeepyb/cmd/update_blueprint.py b/jeepyb/cmd/update_blueprint.py
index bf32b84..7a421a7 100644
--- a/jeepyb/cmd/update_blueprint.py
+++ b/jeepyb/cmd/update_blueprint.py
@@ -140,8 +140,12 @@
parser.add_argument('--commit', default=None)
parser.add_argument('--topic', default=None)
parser.add_argument('--change-owner', default=None)
- # change-merged
+ # patchset-abandoned
+ parser.add_argument('--abandoner', default=None)
+ parser.add_argument('--reason', default=None)
+ #change-merged
parser.add_argument('--submitter', default=None)
+ parser.add_argument('--newrev', default=None)
# patchset-created
parser.add_argument('--uploader', default=None)
parser.add_argument('--patchset', default=None)
diff --git a/jeepyb/cmd/update_bug.py b/jeepyb/cmd/update_bug.py
index 43bd6c2..8b64e88 100644
--- a/jeepyb/cmd/update_bug.py
+++ b/jeepyb/cmd/update_bug.py
@@ -347,6 +347,7 @@
parser.add_argument('--reason', default=None)
# change-merged
parser.add_argument('--submitter', default=None)
+ parser.add_argument('--newrev', default=None)
# patchset-created
parser.add_argument('--uploader', default=None)
parser.add_argument('--patchset', default=None)
diff --git a/jeepyb/cmd/welcome_message.py b/jeepyb/cmd/welcome_message.py
index c8ed843..096832d 100644
--- a/jeepyb/cmd/welcome_message.py
+++ b/jeepyb/cmd/welcome_message.py
@@ -136,8 +136,12 @@
parser.add_argument('--commit', default=None)
parser.add_argument('--topic', default=None)
parser.add_argument('--change-owner', default=None)
+ # patchset-abandoned
+ parser.add_argument('--abandoner', default=None)
+ parser.add_argument('--reason', default=None)
# change-merged
parser.add_argument('--submitter', default=None)
+ parser.add_argument('--newrev', default=None)
# patchset-created
parser.add_argument('--uploader', default=None)
parser.add_argument('--patchset', default=None)