You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Retrieving data from the API will eliminate the need to download the entire repository and will not require additional settings on the build agents.
Steps to obtain changes:
1 Pull the list of commits from PullRequest
_apis/git/repositories/{Repository}/pullrequests/{PullRequestId}/commits
value -> url
2 In the commits, get the list of changes
_apis/git/repositories/{Repository}/commits/{CommitId}
_links -> changes -> href
3 Obtain the changes
_apis/git/repositories/{Repository}/commits/{CommitId}/changes
The changes themselves will be in changes -> item -> url and you can filter by file names through changes -> item -> path.
Beta Was this translation helpful? Give feedback.
All reactions