gpt4 book ai didi

gerrit - 是否可以在Gerrit中编辑/更改/删除已发布的评论?

转载 作者:行者123 更新时间:2023-12-04 11:21:54 28 4
gpt4 key购买 nike

我已经在Gerrit中添加了评论,并且已经发表了。我想在发布后对其进行编辑。那可能吗?

最佳答案

不,已经发布的Gerrit does not support editing comments。您可以先编辑(或丢弃)它们,然后再将它们置于“草稿”状态。

但是,如果您迫切需要这样做,则必须有权访问Gerrit的数据库。您可以在patch_comments表中找到注释(以及对它们进行任何操作)。

2018年5月31日:
从Gerrit v2.15开始,发布了评论的文本can be deleted by Gerrit's administrators。这不会删除整个注释,而是仅删除其内容。

the delete endpoint docs中有更多信息:

Instead of deleting the whole comment, [it] just replaces the comment’s message with a new message, which contains the name of the user who deletes the comment and the reason why it’s deleted. [...] Note that only users with the Administrate Server global capability are permitted to delete a comment.



此功能仅在新的PolyGerrit UI中可用。

关于gerrit - 是否可以在Gerrit中编辑/更改/删除已发布的评论?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34901517/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com