AgentSkillsCN

get-pr-threads

获取 Azure DevOps 拉取请求上的所有评论线程(评审意见、讨论内容、系统消息)。在撰写自己的评审意见之前,先查看已有评审人的反馈,可选用此方法。

SKILL.md
--- frontmatter
name: get-pr-threads
description: >
  Fetch all comment threads on an Azure DevOps pull request (review comments,
  discussions, system messages). Use to see existing reviewer feedback before
  writing your own review.

Get PR Threads

Platform Note

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

Run the get-pr-threads.sh script on macOS/Linux or get-pr-threads.ps1 on Windows to retrieve comment threads.

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-threads/get-pr-threads.sh default_organization MyProject MyRepo 42
powershell
.\github\skills\get-pr-threads\get-pr-threads.ps1 default_organization MyProject MyRepo 42

Output

Returns JSON with a value array of thread objects, each containing comments, threadContext (file path and line range), and status.