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

I have a script to use the VSTS api to create a commit log between two different versions, however the response from the VSTS api returns comments as truncated. This is the most important part of the magazine for my purposes and as such would like to receive comments completely from the api.

The answer is returned like this:

truncatedComments

I could obviously loop through each commit identifier and get full comments by calling api for each of these identifiers, but since this script will be part of our release process, I want it to be as fast as possible, and all these additional calls would add extra time in the script.

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

thanks

+5
source share
2 answers

Use API 2.0, if possible, there are no more comments. All messages are returned in full. The longest commit message I came across was 770 characters, 105 words on 13 lines.

0
source

Adding the maximum comment length parameter to some high value did this for me: _apis / tfvc / Change? maxCommentLength = 1000

0
source

Source: https://habr.com/ru/post/1259762/


All Articles