Gerrit web interface: add multiple reviewers
Asked Answered
E

2

7

Using the Gerrit web interface, is it possible to add multiple reviewers at once to a given commit? Currently, it appears that reviewers have to be added one by one: trying to add a list as input fails regardless of how it is separated.

Engleman answered 16/4, 2017 at 8:3 Comment(0)
F
4

No, it isn't possible to add multiple reviewers at once using Gerrit UI. You have to add one by one or use REST like in this example:

curl --request POST -d@- --header Content-Type:application/json https://GERRIT-SERVER/a/changes/CHANGE-NUMBER/reviewers << EOF
{
    "reviewer": "USERNAME1",
    "reviewer": "USERNAME2"
}
EOF
Frisette answered 16/4, 2017 at 13:50 Comment(2)
Yes, turns out this is how it is. Myself, I ended up using the Gerrit plugin for IntelliJ which has the feature I was looking for built in.Engleman
How to use above example in gerrit?Judd
D
0

Yes, You can not add multiple reviewers at once using Gerrit UI. You can create a Group under "People" -> "Crete New Group" and add the required list of members to be reviewers in that group.

Use the "Group Name" while adding reviewers

Create New Group

Denominate answered 19/10, 2023 at 11:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.