Gerrit:防止自我审查,同时只允许自我提交

Gerrit: prevent self review and only allow self submit at the same time

我想同时实现这两个目标:

对于第一个目标,我是根据 : https://gerrit-review.googlesource.com/Documentation/prolog-cookbook.html#NonAuthorCodeReview

第2个目标,目前在我使用的gerrit中,项目的大家可以点击评论中的"submit"按钮。这不是预期的。

你能帮忙解决一下吗?

您需要配置access control to only grant submit permission to the change owner

在旧的UI中:项目 > 列表 > PROJECT > Access > 编辑

请务必将提交权限添加到 refs/heads/* 引用。