Helpers for talking to the Gerrit SSH API.
All powered by bash and:
- curl
- jq
- Make sure your SSH key is correctly configured in Gerrit
- Create a
config.inifile by copying from the templateconfig.ini.tpland use the configuration of your server. - Use any of the scripts in this directory, e.g.:
# Retrieve change ID of current commit
get-change-id.sh
# Get last build metadata from last build of current change
get-last-build.sh
# Get last build metadata from last build of any change
get-last-build.sh I0987654321abcdefg
# Get reviewer comments for all patchsets of current change
get-review-comments.sh | jq .
# Get reviewer comments for all patchsets of any change
get-review-comments.sh 'Ic94a3738660e5f98f16e5f85db913a74d4660206' | jq .