Gerrit Add Reviewers

懵懂的女人 提交于 2019-12-18 12:17:00

问题


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?


回答1:


You can use the %r=reviewer@mail.com 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%r=a@a.com,r=b@b.com,cc=c@c.com

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.




回答2:


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



回答3:


Sure, just type in the group name in the add reviewer box. If this isn't working, what version of Gerrit are you using?




回答4:


You can use the gerrit hooks or use jenkins with the gerrit trigger to add the reviewers




回答5:


There are plugins for Gerrit which do exactly that:

  • Reviewers
  • Reviewers-by-blame


来源:https://stackoverflow.com/questions/16658879/gerrit-add-reviewers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!