Create PR Summary
create_pr_summaryGenerate a structured pull request summary including change overview, affected files, test coverage, risks, review checklist, and release notes draft from the PR diff and metadata.
Instructions
Generate a structured PR summary from the pull request diff and metadata.
The summary includes: change overview, affected files, test coverage signals, risks, review checklist, and release notes draft.
Args:
owner, repo: Repository coordinates.
pullNumber (number): The PR to summarise.
Returns: Markdown PR summary + structured metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | GitHub repo. Falls back to GITHUB_REPO. | |
| owner | No | GitHub owner. Falls back to GITHUB_OWNER. | |
| pullNumber | Yes | The pull request number to summarise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risks | Yes | ||
| title | Yes | ||
| author | Yes | ||
| labels | Yes | ||
| baseRef | Yes | ||
| commits | Yes | ||
| headRef | Yes | ||
| isDraft | Yes | ||
| docsOnly | Yes | ||
| hasTests | Yes | ||
| pullNumber | Yes | ||
| totalFiles | Yes | ||
| filesTruncated | Yes | ||
| totalAdditions | Yes | ||
| totalDeletions | Yes |