Gerrit 尝试配置简单的 rebase
Gerrit try to configure trivial rebase
我想在 gerrit 2.9.1 上启用简单的 rebase。我遵循了文档并更改了标签。
这是我在 MY_PROJECT.git/config:
中的内容
[label "Code-Review"]
function = MaxWithBlock
copyMinScore = true
value = -2 Do not submit, I must review it !
value = -1 I would prefer that you didn't submit this
value = 0 No score
value = +1 Looks good to me, but someone else must approve
value = +2 Looks good to me, approved !
copyAllScoresOnTrivialRebase = true
copyAllScoresIfNoCodeChange = true
我重新启动了 gerrit,当我查看我的界面时,标签没有改变,也没有激活简单的 rebase。这是我的界面上的内容:
Code-Review:
+2 Looks good to me, approved
+1 Looks good to me, but someone else must approve
0 No score
-1 I would prefer this is not merged as is
-2 This shall not be merged
知道为什么它不起作用吗?
要编辑的文件在所有项目存储库中 'project.config'。
$ git clone ssh://user@gerrit.xxx.com:29418/All-Projects
$ cd 所有项目
$ git 获取来源 refs/meta/config:refs/remotes/origin/meta/config
$git结帐meta/config
$ #edit project.config
$ git commit -a
$ git 推送原点 meta/config:meta/config
我想在 gerrit 2.9.1 上启用简单的 rebase。我遵循了文档并更改了标签。
这是我在 MY_PROJECT.git/config:
中的内容[label "Code-Review"]
function = MaxWithBlock
copyMinScore = true
value = -2 Do not submit, I must review it !
value = -1 I would prefer that you didn't submit this
value = 0 No score
value = +1 Looks good to me, but someone else must approve
value = +2 Looks good to me, approved !
copyAllScoresOnTrivialRebase = true
copyAllScoresIfNoCodeChange = true
我重新启动了 gerrit,当我查看我的界面时,标签没有改变,也没有激活简单的 rebase。这是我的界面上的内容:
Code-Review:
+2 Looks good to me, approved
+1 Looks good to me, but someone else must approve
0 No score
-1 I would prefer this is not merged as is
-2 This shall not be merged
知道为什么它不起作用吗?
要编辑的文件在所有项目存储库中 'project.config'。
$ git clone ssh://user@gerrit.xxx.com:29418/All-Projects
$ cd 所有项目
$ git 获取来源 refs/meta/config:refs/remotes/origin/meta/config
$git结帐meta/config
$ #edit project.config
$ git commit -a
$ git 推送原点 meta/config:meta/config