The arguments are described at:
https://review.openstack.org/Documentation/config-hooks.html
You can see exactly how the hooks are implemented on our systems here:
https://github.com/openstack-infra/config/blob/master/modules/openstack_project/templates/gerrit_patchset-created.erb
https://github.com/openstack-infra/config/blob/master/modules/openstack_project/files/gerrit/change-merged
Those files are shell scripts which are installed as the actual hooks; they then call the python scripts in jeepyb.
From my own notes when experimenting with Gerrit, here are the arguments sent to a patchset-created hook:
--change Ia1fea1eab3976f1a9cb89ceb3ce1c6c6a7e79c42 --change-url https://review-dev.openstack.org/81 --project gtest-org/test --branch master --uploader James E. Blair (<email address hidden>) --commit 05508ae633852469d2fd7786a3d6f1d06f87055b --patchset 1
The arguments are described at:
https:/ /review. openstack. org/Documentati on/config- hooks.html
You can see exactly how the hooks are implemented on our systems here:
https:/ /github. com/openstack- infra/config/ blob/master/ modules/ openstack_ project/ templates/ gerrit_ patchset- created. erb
https:/ /github. com/openstack- infra/config/ blob/master/ modules/ openstack_ project/ files/gerrit/ change- merged
Those files are shell scripts which are installed as the actual hooks; they then call the python scripts in jeepyb.
From my own notes when experimenting with Gerrit, here are the arguments sent to a patchset-created hook:
--change Ia1fea1eab3976f 1a9cb89ceb3ce1c 6c6a7e79c42 --change-url https:/ /review- dev.openstack. org/81 --project gtest-org/test --branch master --uploader James E. Blair (<email address hidden>) --commit 05508ae63385246 9d2fd7786a3d6f1 d06f87055b --patchset 1