My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by andreas....@gmail.com, Apr 16, 2014
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
I want to have this hook in place, to block merges while maven release build is running  in jenkins. this is to ensure that build does not fail with no-fast-forward error.
May 23, 2014
Project Member #2 edwin.ke...@gmail.com
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
#3 ampmt...@googlemail.com
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

Powered by Google Project Hosting