Get Pr Changes

Fetch the list of file changes for a specific iteration of an Azure DevOps pull request. Shows which files were added, edited, or deleted. Requires an iteration ID obtained from get-pr-iterations.

sasky80 b0835a6 940 B Updated

File contents

Get PR Changes

Platform Note

  • Clean-install path: use the Go command from .github/tools/skills-go.

Arguments

# Name Required Description
1 organization Yes Azure DevOps organization
2 project Yes Project name or ID
3 repositoryId Yes Repository name or ID
4 pullRequestId Yes Pull request ID
5 iterationId Yes Iteration ID (from get-pr-iterations)

Examples

go run ./.github/tools/skills-go/cmd/skills-go get-pr-changes myorg MyProject MyRepo 42 3

Output

Returns JSON with changeEntries listing files with their changeType (add, edit, delete) and item.path.

sasky80/ado-reviewer/tree/main/.github/skills/get-pr-changes commit b0835a6b90

Frequently asked questions

npx skillmds@latest add sasky80/get-pr-changes