gerrit的使用以及问题总结_gerrit权限和配置 Gerrit Code Review ---Project Configuration       参考: http://gerrit-documentation.storage.googleapis.com/Documentation/2.11/project-configuration.html

来自其他博客的汇总,比较重要的部分已经截图出来

gerrit的使用以及问题总结_gerrit权限和配置
Gerrit Code Review ---Project Configuration
      参考: http://gerrit-documentation.storage.googleapis.com/Documentation/2.11/project-configuration.html

 参考:https://www.cnblogs.com/yinzhengjie/p/11043239.html

1. Global Capabilities 管理员的权限一般不需要动

2. refs/* 这里对用户Projects List 进行管理,如果用户对一个项目没有该权限的读取功能,则用户不能查询到该项目,即使有该项目的URL也不能从远程拉取该项目。

3. refs/for/*和refs/for/refs/*,用来控制向gerrit仓库push权限。如果需要限制用户push功能,可以将用户组添加至PUSH下选择BLOCK。

4. 指定分支管理,如果不希望用户将代码提交到某一分支(master),可以新加一个reference权限,名叫refs/for/refs/heads/develop,然后设置push权限添加对应用户组,设置权限为BLOCK。

5. 提交新分支,要直接push,因为向gerrit上提交新分支会提示未找到分支。这里要设置的权限是refs/heads/*下面的create reference。添加组并赋予ALLOW即可。

6. 删除远程分支,设置权限refs/heads/*下面的push权限,并且勾选后面的Force Push。

7. refs/heads/*下的Label Code-Review是review代码时评分,有+2评分权限的用户可以让提交的代码通过审核。

详细权限描述:https://www.jianshu.com/p/d95faa9f8b05

看到了一篇很好的博客,大纲如下:

gerrit的使用以及问题总结_gerrit权限和配置
Gerrit Code Review ---Project Configuration
      参考: http://gerrit-documentation.storage.googleapis.com/Documentation/2.11/project-configuration.html

链接如下:

https://www.ieclipse.cn/2016/05/14/other/tech-gerrit-guide/index.html

      参考: http://gerrit-documentation.storage.googleapis.com/Documentation/2.11/project-configuration.html

另外一篇: 代码检视工具gerrit的日常使用   https://www.jianshu.com/p/b77fd16894b6

还有gerrit review命令行的使用: https://review.opendev.org/Documentation/cmd-review.html