Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gerrit Add Reviewers

Tags:

gerrit

I have a project in Gerrit and each time I submit a change I manually have to add a group of reviewers to that change. Is there a mechanism that would allow me to specify reviewers that I want to be emailed for each change?

like image 477
Sriram Venkatesh Avatar asked May 20 '13 21:05

Sriram Venkatesh


People also ask

How do I see my review comments on Gerrit?

Show activity on this post. Where <changeid> is the Gerrit change-id or change number. This will show you all the comments, including inline comments from files, associated with the current patch set. You can replace --current-patch-set with --patch-sets to see this for all patch sets.

How do I submit a Gerrit code review?

Gerrit supports three methods of uploading changes: Use repo upload , to create changes for review. Use git push , to create changes for review. Use git push , and bypass code review.

How do I add a topic to Gerrit?

It is also possible to set a topic on push, either by appending %topic=… ​ to the ref name or through the use of the command line flag --push-option , aliased to -o , followed by topic=… ​ . Gerrit may be configured to submit all changes in a topic together with a single click, even when topics span multiple projects.


2 Answers

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.

git push tr:kernel/common HEAD:refs/for/experimental%[email protected],[email protected],[email protected]

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.

like image 92
Motti Strom Avatar answered Sep 23 '22 21:09

Motti Strom


If you happen to be using Gerrit with Repo, then you can always specify reviewers while uploading changes.

repo upload --re=address_of_reviewer1,address_of_reviewer2...,address_of_reviewerN
like image 22
mrutyunjay Avatar answered Sep 25 '22 21:09

mrutyunjay