我正在使用Azure DevOps rest api来获取每个请求请求的所有注释。我已经通过Microsoft documentation。我也一样。但是,当我看到json响应时,它不显示评论列表。当我触发请求时,它正在得到以下结果。
文档中提供的官方网址
https://dev.azure.com/myorg/_apis/git/repositories/jd7489eiu-e5bb-37f7-kl05-098kd4dd/pullRequests/192/threads/ {threadId} /comments?api-version=5.1“
我尝试跟踪网址以达到我的结果 https://dev.azure.com/myorg/_apis/git/repositories/jd7489eiu-e5bb-37f7-kl05-098kd4dd/pullRequests/192/threads?api-version=5.1”
返回的评论为空
{
"pullRequestThreadContext": null,
"id": 1341,
"publishedDate": "2019-02-05T13:15:20.903Z",
"lastUpdatedDate": "2019-02-05T13:15:20.903Z",
"comments": "",
"threadContext": null,
"properties": "@{BypassPolicy=; BypassReason=; CodeReviewStatus=; CodeReviewStatusUpdateAssociatedCommit=; CodeReviewThreadType=; CodeReviewStatusUpdatedByIdentity=}",
"identities": "@{1=}",
"isDeleted": false,
"_links": "@{self=; repository=}"
}
上面的url返回与上面相同的结果。
返回的评论为空
{
"pullRequestThreadContext": null,
"id": 1341,
"publishedDate": "2019-02-05T13:15:20.903Z",
"lastUpdatedDate": "2019-02-05T13:15:20.903Z",
"comments": "",
"threadContext": null,
"properties": "@{BypassPolicy=; BypassReason=; CodeReviewStatus=; CodeReviewStatusUpdateAssociatedCommit=; CodeReviewThreadType=; CodeReviewStatusUpdatedByIdentity=}",
"identities": "@{1=}",
"isDeleted": false,
"_links": "@{self=; repository=}"
}
有人遇到过同样的问题,或者知道解决方法,请告诉我。