Gerrit email notification for branching out to master
Hello I am trying to set up email notifications for push to gerrit. I get emails when I click HEAD:refs/for/master
or review branch
on gerrit
Example: - git push gerrit HEAD:refs/for/master
Email notification triggers based on settings in a Watch Projects
sub Settings
on the Gerrit web page.
But, when I press master -
git push gerrit master
Email notifications are not triggered.
Can someone please help me set up email notifications for pushing master branch also on gerrit
source to share
According to Gerrit documentation :
Gerrit can automatically notify users via email when new changes are uploaded for review, after comments have been posted with changes, or after changes are made to a branch.
Therefore, it is not possible to trigger an automatic email notification of changes that have been pushed into the repository without being checked out. However, as described here , you can use a ref-updated
hook and handle sending the email manually:
ref updatable
Called when ref is updated.
ref-updated --oldrev --newrev --refname --project --submitter
source to share