我想查询GIT提交以获取与特定提交相关联的相关工作项ID.(https://www.visualstudio.com/en-us/docs/integrate/api/git/commits)
请求:
http://{server}/tfs/{collection}/{git repository}/_apis/git/repositories/{repository name}/commits?api-version=1.0
Run Code Online (Sandbox Code Playgroud)
不幸的是,它返回截断的注释,因此并不总是能够看到工作项ID(#{Work Item ID}).
{
"count": 100,
"value": [{
"commitId": "commit hash",
"author": {
"name": "some name",
"email": "some email",
"date": "2016-12-12T14:29:28Z"
},
"committer": {
"name": "some name",
"email": "some email",
"date": "2016-12-12T14:29:28Z"
},
"comment": "Merge branch 'someBranch' of something.",
"commentTruncated": true,
"changeCounts": {
"Add": 5,
"Edit": 34
},
"url": "url",
"remoteUrl": "remoteUrl"
}]
}
Run Code Online (Sandbox Code Playgroud)
在上面的响应中,属性"commentTruncated"设置为true.我已经阅读了文档,但没有找到解决方案来分别获得完整评论或相关工作项.
| 归档时间: |
|
| 查看次数: |
895 次 |
| 最近记录: |