Comment 7 for bug 1018013

Revision history for this message
James E. Blair (corvus) wrote :

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