Gerrit Add Reviewers

Sriram Venkatesh picture Sriram Venkatesh · May 20, 2013 · Viewed 12.5k times · Source

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?

Answer

Motti Strom picture Motti Strom · May 29, 2013

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.