问题描述
我注意到,当您在“拉取请求”中修改评论时,似乎没有一种查看评论历史的方法。同样,评论仍然可以在有人回复后进行编辑。我的一所大学在收到回应后正在编辑评论,因此我们的请求没有任何意义。有防止更改的历史记录或方法吗?
解决方法
对不起,但据我所知这是不可能的。此外,在此链接之前的建议单中也提交了类似的问题: Disable comment editing (i.e. add,edit,delete,and state change) in completed pull request
此外,我们可以使用下面的API来获取Pull Request Thread Comments来检查lastUpdatedDate和publishedDate。
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}?api-version=5.1