I have gerrit group named "UI_Developers"
I am using the following command to submit my changes for review:
git push origin HEAD:refs/for/master%[email protected]
But, I want to add all the members in the UI_Developers group as reviewers command line. Using UI this is easy, by using command line, any idea how to add an entire gerrit group as reviewer?
PS:ssh -p ...set-reviewers -a reviewer
method is quite cumbersome hence I am not looking for it.
You can use the %[email protected] syntax on your branch specifier during a push to automatically add reviewers to a change. You can add as many emails as you want and all will be emailed, e.g. It's a good idea to just specify this in a remote block in your git config so you don't have to type all that each time.
Gerrit (/ˈɡɛrɪt/ GERR-it) is a free, web-based team code collaboration tool. Software developers in a team can review each other's modifications on their source code using a Web browser and approve or reject those changes.
Adding groups as reviewers when pushing doesn't seem to be supported by Gerrit yet.
This is a related feature request which is open as of August 2016:
Currently, the --reviewer only takes account identifier (email) as parameter. It could be updated to take a group name as argument.
My use case is that we have groups corresponding to our development teams. Developers often want to add their whole team as reviewer for their changes. Currently they need either to add --reviewer manually to their receivepack command (and keep in sync with team changes) or go to the web interface to add the whole group at once. Having the ability to add the group directly from the receivepack would ease the process.
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