Get file names in a commit in azure devops using rest api c#

Viewed 460
1 Answers

Is there an api to get this information ?

Yes. You can get the file names in a commit with this API: Commits - Get Changes

GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/changes?api-version=6.0

For .net sdk, you can refer to this class: GitCommitChanges Class

Related