我正在使用Gerrit为我的公司设置访问控制,并且在我们当前的内部流程中,同行评审员和编码员(他们往往是同一批人)之间存在交叉.我们还希望只要求1位审阅者对代码进行同行审阅,并在看起来不错的情况下提交.
I'm setting up the access control for my company in gerrit and in our current internal process has cross-over between peer reviewers and coders (they tend to be the same group of people). We also want to only require 1 reviewer to peer review the code and submit it if it looks good.
在默认设置下,任何具有+2: Looks good to me, approved选项的用户都可以对等查看他们自己的代码.
With the default setup any user with the +2: Looks good to me, approved option can peer review their own code.
有什么方法可以阻止作者查看自己的代码,但仍然允许他们完全查看其他人的代码吗?在访问控制组设置或权限设置中,我找不到任何类型的排除作者.
Is there any way to prevent the author from reviewing their own code, but still allow them to fully review other's code? I haven't been able to find any kind of exclude author in the access control group setup or permissions setups.
推荐答案Gerrit Cookbook示例8 并没有严格禁止作者审阅自己的更改,而是要求其他人对其进行+2更改后才能提交.
The Gerrit Cookbook Example 8 does not strictly prevent the Author to review his/her own change, but will require someone else to +2 it before being able to submit.
更多推荐
从Gerrit的同行审阅者列表中排除作者
发布评论