| Issue 2610: | Hook to run after review/submit but before merge | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I need to have a hook that runs after a patch set has been reviewed/submitted but before it's actually merged. Using git without gerrit this can be accomplished with the pre-receive hook. I know there is a ref-update hook right now but that will trigger when pushing *to* gerrit, I need a hook that triggers after review/submit. Here's a silly example to clarify what I want. Say I have a rule that no files get merge into master between 10 and 11. So you are allowed to do the actual git-review/push to gerrit at any time but if the review is done and submitted between 10 and 11 it should be rejected with a message "merge not allowed right now".
May 22, 2014
#1
ampmt...@googlemail.com
May 23, 2014
Have a look at the extension point for pre merge validation: https://gerrit-review.googlesource.com/Documentation/config-validation.html#pre-merge-validation
May 27, 2014
This does not really serve the purpose, as i would like to run a hook/script to check if jenkins release build is in progress and based on that would like to fail the merge. we are using 2.8.3. |
|
| ► Sign in to add a comment |