Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a gerrit group as reviewer

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.

like image 526
Yo Yo Money Singh Avatar asked Jan 05 '15 11:01

Yo Yo Money Singh


People also ask

How do I add a reviewer to Gerrit?

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.

Is Gerrit code review free?

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.


1 Answers

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.

like image 162
Ben Barnard Avatar answered Nov 22 '22 18:11

Ben Barnard