Adding the gerrit group as a reviewer

I have a gerrit group named "UI_Developers"

I use the following command to submit my changes for viewing:

git push origin HEAD:refs/for/master% r=abc@morg.com 

But I want to add all the members to the UI_Developers group as a reviewers command line. Using the user interface is easy using the command line, any idea how to add the whole gerrit group as a reviewer?

PS: ssh -p ...set-reviewers -a reviewer method is rather cumbersome, so I'm not looking for it.

+6
source share
1 answer

Adding groups as reviewers on click is not supported by Gerrit.

This is a related request that has been open since August 2016:

Currently, --reviewer only accepts an account identifier (email) as a parameter. It can be updated to accept the group name as an argument.

My use case is that we have groups corresponding to our development team. Developers often want to add their entire team as a reviewer to change them. Currently, they need to either add --reviewer manually to their getpack command (and keep in sync with the changes to the command) or go to the web interface to immediately add the entire group. Having the ability to add groups directly from getpack will make the process easier.

+4
source

Source: https://habr.com/ru/post/980524/


All Articles