Get PR Diff-to-Line Mapper
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-diff-line-mapper myorg MyProject MyRepo 42 3
Output
Returns JSON with:
pullRequestId,iterationIdsourceBranch,targetBranchcountfiles[]entries containing:path,changeType,changeTrackingId,isFolderbaseExists,prExistslineMap:hunkCount,totalAdded,totalDeleted,totalContexthunks[]witholdStart,oldLines,newStart,newLines, and per-hunk line totals