AgentSkillsCN

get-pr-changes

获取 Azure DevOps 拉取请求特定迭代的文件变更列表,清晰展示哪些文件被新增、编辑或删除。需先通过 get-pr-iterations 获取迭代 ID。

SKILL.md
--- frontmatter
name: get-pr-changes
description: >
  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.

Get PR Changes

Platform Note

  • macOS/Linux: run .sh scripts
  • Windows: run .ps1 scripts with the same argument order

Run the get-pr-changes.sh script on macOS/Linux or get-pr-changes.ps1 on Windows to list changed files.

Arguments

#NameRequiredDescription
1organizationNoAzure DevOps organization (default: default_organization)
2projectYesProject name or ID
3repositoryIdYesRepository name or ID
4pullRequestIdYesPull request ID
5iterationIdYesIteration ID (from get-pr-iterations)

Example

bash
bash .github/skills/get-pr-changes/get-pr-changes.sh default_organization MyProject MyRepo 42 3
powershell
.\github\skills\get-pr-changes\get-pr-changes.ps1 default_organization MyProject MyRepo 42 3

Output

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