I want to request a GIT is committed to receiving associated work item identifiers associated with a specific commit. ( https://www.visualstudio.com/en-us/docs/integrate/api/git/commits )
Request:
http://{server}/tfs/{collection}/{git repository}/_apis/git/repositories/{repository name}/commits?api-version=1.0
Unfortunately, it returns truncated comments, and because of this, it is not always possible to see the work item identifier (# {Work item identifier}).
{ "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" }] }
In the answer above, the "commentTruncated" property is set to true. I read the documentation, but did not find a solution to get the full comment or related work separately.
source share