[英]How to export TFS Shelveset comments to text or excel
Can we export code review comments in a TFS Shelveset to an excel or any Text file.我们可以将 TFS Shelveset 中的代码审查注释导出到 excel 或任何文本文件。 I have attached this image.我附上了这张图片。 The comment in Red circle needs to be exported to excel or any Text file.红圈内的注释需要导出到excel或者任意Text文件。
Reason - For audit purpose, need to track review comments being given to developer.原因- 出于审计目的,需要跟踪提供给开发人员的审查意见。 Right now we have to manually enter these comments inside an excel code review sheet.现在我们必须在 excel 代码审查表中手动输入这些注释。
Please advise.请指教。
You could write a PowerShell script that queries the REST API see to get a particular shelveset, I would do a List first then a Get Shelveset change and try and get the full changes including the comments then you can save that to a txt file for you auditors.你可以写一个 PowerShell 脚本来查询 REST API 看看得到一个特定的搁置集,我会先做一个列表然后为你做一个获取搁置集更改然后保存评论审计师。 I haven't tried it so I don't know if comments are returned but I think so.我还没有尝试过,所以我不知道是否返回了评论,但我认为是这样。
There is no built-in or documentary way to get the comments on the Shelvesets tab, but if you try to capture the network log, you would see you can get the comments using the following API:没有内置或记录方式来获取 Shelvesets 选项卡上的评论,但如果您尝试捕获网络日志,您会看到可以使用以下 API 获取评论:
Get http://TFS2018:8080/tfs/DefaultCollection/_apis/discussion/threads?artifactUri=vstfs%3A%2F%2F%2FVersionControl%2FShelveset%2F{CodeReviewName}%252526shelvesetOwner%25253D{ownername}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.