添加了Gerrit标签,但无法在查看页面中正确看到它 [英] Adding gerrit label, but not able to see it properly in review page

查看:73
本文介绍了添加了Gerrit标签,但无法在查看页面中正确看到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用gerrit 2.9.我是Gerrit配置的新手,正在尝试向All-projects项目添加 Verified 标签,以便在所有项目的审阅中显示已验证的标签. project.config的相关部分如下所示:

Using gerrit 2.9. I am new to gerrit configuration and am trying to add a Verified label to the All-projects project so that the verified label is shown in the reviews for all projects. The relevant part of the project.config looks like this:

[label "Code-Review"]
    function = MaxWithBlock
    copyMinScore = true
    value = -2 This shall not be merged
    value = -1 I would prefer this is not merged as is
    value =  0 No score
    value = +1 Looks good to me, but someone else must approve
    value = +2 Looks good to me, approved
[label "Verified"]
    value = -1 Fails
    value =  0 No score
    value = +1 Verified

我运行以下命令:

$ git commit -am "Add verified label"
$ git push -f origin meta/config:meta/config

现在,当我去尝试检查变更集时,我看到了需要验证的行,但是我看不到任何可以放置它的地方.屏幕看起来像这样:

Now, when I go and try to review a change-set, I see the needs verified line, but I don't see anywhere that I can place it. The screen looks like this:

我无法对评论进行验证.

There is no way for me to set verified on the review.

我从以下问题获得了帮助:找不到gerrit 2.7中的标签验证"权限,但这不能解决问题.

I had help from this question: Can't find 'Label Verified' permission in gerrit 2.7 but this did not solve the problem.

推荐答案

问题是您没有足够的权限来设置已验证标签.在Gerrit中,必须明确允许所有变更评分.如果您没有设置标签的权限,则标签甚至都不会出现在发布"视图中.

The problem is that you don't have sufficient permissions to set the Verified label. In Gerrit, all change scoring must be explicitly allowed. If you don't have permissions to set a label, it won't even appear in the Publish view.

要授予用户设置已验证"标签的权限,请找到您要影响的项目(或者更有可能是特殊的所有项目"项目,以使其应用于所有地方).在访问选项卡上,选择编辑.在refs/heads/*下,添加标签验证"权限并分配一个合适的组.如果列表中没有ref/heads/*参考,请将其添加.

To grant users permission to set the Verified label, locate the project you want to affect (or, perhaps more likely, the special All Projects project to have it apply everywhere). On the Access tab, choose Edit. Under refs/heads/*, add a "Label Verified" permission and assign a suitable group. If there's no refs/heads/* reference in the list, add it.

这篇关于添加了Gerrit标签,但无法在查看页面中正确看到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆