Closed ehrojasf closed 6 years ago
Can you clarify what the anticipated inputs are? Just the IDs of the releases? Or something else?
Once you have found the changesets involved between 2 releases, you can use git client APIs to involve the files involved. To find out the diff between 2 releases, you can use these steps.
Just to clarify, I am writing small C# console app to create a CSV that will contain all the files associated/changed in a PULL REQUEST (GIT) and the work item id linked to. I was using the Microsoft.TeamFoundation.WorkItemTracking.Client but I have not been able to access the list of files.
like: pullrequest 321
Work Items 1318 1630
Files Alert.cs Alert.xaml
On Thu, Oct 26, 2017 at 8:51 AM, Aseem Bansal notifications@github.com wrote:
Once you have found the changesets involved between 2 releases, you can use git client APIs to involve the files involved. To find out the diff between 2 releases, you can use these steps.
https://blogs.msdn.microsoft.com/chandananjani/2017/07/04/ compute-changeset-difference-between-two-releases-using-apis/
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vsts-dotnet-samples/issues/76#issuecomment-339711741, or mute the thread https://github.com/notifications/unsubscribe-auth/AfQgUYc_kqfEwKpG9EjLjpVnJhfAY391ks5swKqSgaJpZM4P4vj1 .
-- Edgar H. Rojas Sr. Software Engineer
In order to get the list of files in a pull request, you can use the pull request iteration change endpoint to get a list of changes in the most recent pull request iteration:
https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests/iterations
You can access the endpoint by using the Pull Request client and calling client.GetPullRequestIterationChangesAsync
This appears to be answered. Please feel free to reactivate if not.
How can I export to csv file the list of files changed related to work item between releases?