2

I require to list the list of files modified in particular pull request in Azure DevOps Server 2019 git repo.

Ashish Singh
  • 21
  • 1
  • 2

1 Answers1

0

As I know there's no direct Rest-Api to do that. You can first use Get Pull Request Commits to get commits for one specific PR, and then use Get changes in a loop to get the files changed in one PR.

The path element in changes indicates the changed file. But for now no Azure Devops Rest-api can directly list all the changed files' names.

In addition: You may consider using git command instead of Rest-api to do that job. Similar issues see How can I see all modified files from a Git Pull Request? and List all files changed in a pull request in Git/GitHub. Hope it helps :)

LoLance
  • 25,666
  • 1
  • 39
  • 73