Forum Discussion
chamidu_sumanasekara
Nov 13, 2024Copper Contributor
Azure Git get the PR difference in global diff format
Hi, I am looking for an API or workaround to get the difference of a PR in global diff format. a functionality similar to github /repos/{repo name}/pulls/{PR number}.diff
Kidd_Ip
Nov 15, 2024MVP
Try this under Azure DevOps:
curl -u {username}:{personal_access_token} \
-H "Accept: application/json" \
https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/diffs?api-version=6.0