Deployed a VM with gerrit/git.
If I run the following commands to create and push a tag to gerrit:
<snip> git tag -a 2014.06.03 -m "March release" git push gerrit 2014.06.03 </snip>
then gerrit events stream logs that action as:
<snip> {"type":"ref-updated","submitter":{"name":"Ricardo Carrillo Cruz","email":"<email address hidden>","username":"rcarrillocruz"},"refUpdate":{"oldRev":"0000000000000000000000000000000000000000","newRev":"b3510fbe11adeba89abb03db451b83e86ba4abce","refName":"refs/tags/2014.06.03","project":"demo/gerrittest"}} </snip>
So now it's a matter of adding a method to the Gerrit class in bot.py that handles the 'ref-updated' event and checks whether the 'refName' field to contain a release tag.
Deployed a VM with gerrit/git.
If I run the following commands to create and push a tag to gerrit:
<snip>
git tag -a 2014.06.03 -m "March release"
git push gerrit 2014.06.03
</snip>
then gerrit events stream logs that action as:
<snip> :"ref-updated" ,"submitter" :{"name" :"Ricardo Carrillo Cruz"," email": "<email address hidden> ","username" :"rcarrillocruz "},"refUpdate" :{"oldRev" :"0000000000000 000000000000000 000000000000" ,"newRev" :"b3510fbe11ade ba89abb03db451b 83e86ba4abce" ,"refName" :"refs/ tags/2014. 06.03", "project" :"demo/ gerrittest" }}
{"type"
</snip>
So now it's a matter of adding a method to the Gerrit class in bot.py that handles the 'ref-updated' event and checks whether the 'refName' field to contain a release tag.