使用docker
安装的Gerrit
在初次init
时,未选择安装 Label Verified
。
参考官方文档,如果以后需要配置它,管理员可以通过向All-Projects
中添加以下内容到project.config
来实现。
[label "Verified"]
function = MaxWithBlock
value = -1 Fails
value = 0 No score
value = +1 Verified
copyCondition = changekind:NO_CODE_CHANGE
添加完成后,在git push origin HEAD:refs/meta/config
时提示以下错误。
ERROR: commit c63cfb7: Value 'MaxWithBlock' of 'label.Verified.function' is not allowed and cannot be set. Label functions can only be set to {NO_BLOCK, NO_OP, PATCH_SET_LOCK}. Use submit requirements instead of label functions.
根据提示修改MaxWithBlock
为NO_BLOCK
后仍推送失败。
再次查看文档

修改MaxWithBlock
为NoBlock
后推送成功
参考:
https://gerrit-documentation.storage.googleapis.com/Documentation/3.9.5/config-labels.html#label_Verified
https://gerrit-documentation.storage.googleapis.com/Documentation/3.9.5/config-labels.html#label_function
网友评论