| name | view-pr-github |
| description | View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback). |
View PR (GitHub)
Purpose
Read pull request status/details from GitHub.
Priority order:
- FIRST: Use GitHub MCP tools - stable, structured, no pager/editor issues
- SECOND: Use
scripts/pr-github.sh wrapper (for create/merge only)
- LAST: Use
gh CLI as final fallback
Use this skill for read-only PR inspection (status, checks, reviewers, files, body). For creating/merging PRs, use the create-pr-github skill.
GitHub MCP Tools (Preferred)
Use these GitHub MCP tools for PR operations:
PR Details and Metadata
github-mcp-server-pull_request_read
method: "get"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: PR number, title, state, body, author, timestamps, merge status, etc.
PR Diff
github-mcp-server-pull_request_read
method: "get_diff"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: Full diff of the PR changes
PR Status Checks
github-mcp-server-pull_request_read
method: "get_status"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: Status of CI/CD checks, required checks, conclusion
PR Changed Files
github-mcp-server-pull_request_read
method: "get_files"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100
Returns: List of files changed with stats (additions, deletions, changes)
PR Review Comments (inline on code)
github-mcp-server-pull_request_read
method: "get_review_comments"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100