Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to return the full comments when using the VSTS Api to get a list of commits?

I have a script for using the VSTS api to generate a log of commits between two different versions, however the response from the VSTS api returns the comments as truncated. This is the most important part of the log for my purposes and as such would like to receive the comments in full from the api.

The response comes back like this:

truncatedComments

I could obviously loop through each commit Id and get the full comments by calling the api for each of these Ids, but as this script will be part of our release process I want it to be as quick as possible, and all those extra calls would add unnecessary time to the script.

From what I can see there is no way to get the full comments when getting the list of commits, but I'm hoping someone out there can help me with this?

Thanks

like image 739
DylanB Avatar asked Nov 15 '16 10:11

DylanB


1 Answers

Adding the max comment length parameter to some high value did it for me: _apis/tfvc/changesets?maxCommentLength=1000

like image 101
Glaucon Avatar answered Oct 02 '22 15:10

Glaucon