How to set default reviewer ?

4,935 views
Skip to first unread message

Steven Zhu

unread,
Apr 9, 2012, 3:37:13 AM4/9/12
to repo-d...@googlegroups.com
Hi,
    Does anyone know how to set default reviewer ? We hope gerrit can send review mail to any persons automaticlly when guys do "git push origin HEAD:refs/for/master".
   

--
BR
Steven.zhu

Shawn Pearce

unread,
Apr 9, 2012, 3:44:08 AM4/9/12
to Steven Zhu, repo-d...@googlegroups.com

Not really adding a default reviewer. Instead have the interested reviewers fill in a watched project setting using their Settings > Watched Projects panel. This will allow the server to BCC them on any changes matching their settings, and they can then go into Gerrit to review the change.

Steven Zhu

unread,
Apr 9, 2012, 4:23:24 AM4/9/12
to Shawn Pearce, repo-d...@googlegroups.com
Thanks for your answer. I've configured successfully. One more question, Is it possible to configure default reviewer with hooks ?

I searched on web and got the following url that said "Configure default reviewer in .git/config file", but didn't say how to configure. Does anyone know this solution ?
http://code.google.com/p/gerrit/issues/detail?id=681&can=1&q=default%20reviewer&colspec=ID%20Type%20Stars%20Milestone%20Status%20Priority%20Owner%20Summary

2012/4/9 Shawn Pearce <s...@google.com>



--
BR
Steven.zhu

Magnus Bäck

unread,
Apr 9, 2012, 6:31:53 AM4/9/12
to Repo and Gerrit Discussion
On Mon, Apr 9, 2012 at 4:23 AM,
Steven Zhu <stev...@gmail.com> wrote:

> Thanks for your answer. I've configured successfully. One more question, Is
> it possible to configure default reviewer with hooks ?

I've never used hooks, but if you do find a suitable one you can
invoke the set-reviewers SSH command to add reviewers to the change.

http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/cmd-set-reviewers.html

> I searched on web and got the following url that said "Configure default
> reviewer in .git/config file", but didn't say how to configure. Does anyone
> know this solution ?
> http://code.google.com/p/gerrit/issues/detail?id=681&can=1&q=default%20reviewer&colspec=ID%20Type%20Stars%20Milestone%20Status%20Priority%20Owner%20Summary

I think what Martin is talking about is using the possibility to
change the receive-pack command that Gerrit runs when receiving your
commits. That's how the Repo tool sets the initial reviewers when you
upload changes using the --re option.

http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/cmd-receive-pack.html

--
Magnus Bäck
ba...@google.com

Reply all
Reply to author
Forward
0 new messages