So what I am trying to do is: Add the url, for example (https://gerrit-server/#/c/7456/) into the commit message appearing on gerrit.
What I have tried so far is create a file patchset-created
under gerrit_site/hooks/
wich is launched when I push a change.
The problem is that i can't locate the commit message file, so i can modify it's content.
I figured since I am trying to insert the url into the commit message, I can t do this by using a hook on my local git repository because there is no way to know what url it is going to be associated to on gerrit, so i thought it may be done by using a hook on gerrit side.
Would appreciate any feed back.
You can modifiy the commit message from gerrit UI directly. Just open the commit message on gerrit and click on the edit button next to patch-sets on the above. Do any change and then save it. You will need to submit you new commit message afterwards, appearing just above the owner section on the commit page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With