防止在TFS 2015 GIT Pull Request中删除评论? [英] Prevent deletion of comments in TFS 2015 GIT Pull Request?

查看:103
本文介绍了防止在TFS 2015 GIT Pull Request中删除评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法阻止用户删除添加到代码行或TFS 2015中GIT Pull Request的Discussion部分的注释?似乎审阅者可以删除其他审阅者的注释,这使得打开Pull请求的人
可以将自己添加为审阅者,删除在他们自己的Pull请求上发表的任何注释,然后将其自身删除为审稿人。这些行动也没有明显的历史。


拉动请求的所有者似乎也可以改变"状态"。由与特定代码行相关联的其他人发表的评论"已解决"。除了审稿人之外,任何人都不应该允许这样做。

解决方案

嗨Kyle_V,


感谢您在此发帖。


我在myside中检查过,"Project Collection Administrators"组中的用户可以删除所有评论。


一般来说,用户只能删除自己在讨论中添加的评论,如果其他人在代码行中回复评论,则评论不能自行删除。


请检查权限对于可以删除其他用户评论的帐户。


将请求重点放在团队工作上,为拉取请求添加评论以提出建议,回复之前的评论,并指出建议的问题更改,更新评论状态,让评论者知道您正在做什么来解决他们在审核中带来
的问题,因此所有团队成员都可以相应地更改状态。


请参考
查看带拉取请求的代码
以获取更多信息。


最诚挚的问候。


Is there a way to prevent users from deleting comments added either to a line of code or to the Discussion section of a GIT Pull Request in TFS 2015? It appears that reviewers can delete the comments of other reviewers which makes it possible for the person who opened a Pull Request to add themselves as a reviewer, delete any comments made on their own Pull Request, and then remove themselves as a reviewer. There is no evident history of these actions either.

It also appears that owners of a Pull Request can change the "Status" of comments made by other people associated with specific lines of code to "Resolved". This doesn't seem like it should be allowed by anyone but a reviewer.

解决方案

Hi Kyle_V,

Thank you for posting here.

I checked in myside, the users in ‘Project Collection Administrators’ group can delete all the comments.

Generally, the users can only delete the comments added by their own in discussion, and the comments cannot be deleted by themselves if others replied the comment in code line.

Please check the permission for the accounts which can delete other user’s comments.

Pull request focus on team work, add comments to the pull request to make suggestions, reply to previous comments, and point out problems with the proposed changes, update comment status to let reviewers know what you are doing to address the concerns brought up in their review, so all the team members can change the status accordingly.

Please refer to Review code with pull requests for more information.

Best Regards.


这篇关于防止在TFS 2015 GIT Pull Request中删除评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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