AgentSkillsCN

get-pr-iterations

获取 Azure DevOps 拉取请求的所有迭代(推送更新)。结合 get-pr-changes 技能,使用最新的迭代 ID 来发现哪些文件发生了修改。

SKILL.md
--- frontmatter
name: get-pr-iterations
description: >
  Fetch all iterations (push updates) of an Azure DevOps pull request.
  Use the latest iteration ID with the get-pr-changes skill to discover
  which files were modified.

Get PR Iterations

Platform Note

  • macOS/Linux: run .sh scripts
  • Windows: run .ps1 scripts 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

#NameRequiredDescription
1organizationNoAzure DevOps organization (default: default_organization)
2projectYesProject name or ID
3repositoryIdYesRepository name or ID
4pullRequestIdYesPull 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.