简体   繁体   中英

Add reviewers to gerrit

I've read the Question ID: Gerrit Add Reviewers However, my requirements are a little different.

I have not given my users "push" rights, hence git push tr:kernel/common HEAD:refs/for/experimental%r=a@a.com,r=b@b.com,cc=c@c.com will be redundant for me.

I am using git review -R, however, using this, even though the changes get uploaded, I am not able to add any specific reviewer using command line or some local config. Is there any work around?

Gerrit's Push permission controls who can push to eg refs/heads/*, not general use of the git push command. The example for pushing to refs/for/experimental in your question should work just fine for you.

If you want to continue using the git review command (which oddly enough doesn't appear to support selection of reviewers) you always have the option of adding the reviewers after you've uploaded the change. Use the set-reviewers SSH command or the /changes/<id>/reviewers REST endpoint .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM