AgentSkillsCN

get-pr-details

从 Azure DevOps 获取拉取请求的元数据(标题、描述、状态、源分支与目标分支、评审人、合并状态)。当用户提供了拉取请求 ID,而您需要深入了解 PR 的上下文时,可选用此方法。

SKILL.md
--- frontmatter
name: get-pr-details
description: >
  Fetch pull request metadata from Azure DevOps (title, description, status,
  source/target branches, reviewers, merge status). Use when the user provides
  a pull request ID and you need to understand the PR context.

Get PR Details

Platform Note

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

Run the get-pr-details.sh script on macOS/Linux or get-pr-details.ps1 on Windows to retrieve pull request metadata.

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

Output

Returns JSON with fields including title, description, status, sourceRefName, targetRefName, reviewers, mergeStatus, createdBy, etc.