Get PR Iterations
Platform Note
- •macOS/Linux: run
.shscripts - •Windows: run
.ps1scripts with the same argument order
Run the get-pr-iterations.sh script on macOS/Linux or get-pr-iterations.ps1 on Windows to list iterations.
Arguments
| # | Name | Required | Description |
|---|---|---|---|
| 1 | organization | No | Azure DevOps organization (default: default_organization) |
| 2 | project | Yes | Project name or ID |
| 3 | repositoryId | Yes | Repository name or ID |
| 4 | pullRequestId | Yes | Pull request ID |
Example
bash
bash .github/skills/get-pr-iterations/get-pr-iterations.sh default_organization MyProject MyRepo 42
powershell
.\github\skills\get-pr-iterations\get-pr-iterations.ps1 default_organization MyProject MyRepo 42
Output
Returns JSON with a value array of iteration objects. Each has an id field. Use the highest id to call get-pr-changes.