我想在gerrit 2.9.1上启用琐碎的rebase。我按照文档和更改标签。
这是我在MY_PROJECT.git / config中的hava:
[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
知道它为什么不起作用吗?
答案 0 :(得分:2)
要编辑的文件是' project.config'在All-Project存储库中。
请参阅this link。
$ git clone ssh://user@gerrit.xxx.com:29418 / All-Projects
$ cd All-Projects
$ git fetch origin refs / meta / config:refs / remotes / origin / meta / config
$ git checkout meta / config
$ #edit project.config
$ git commit -a
$ git push origin meta / config:meta / config