fetching-pr-comments
Installation
SKILL.md
Fetching PR Comments
Overview
Retrieve and parse GitHub PR review comments for the current branch using gh CLI.
Quick Reference
| Task | Command |
|---|---|
| Check if PR exists | gh pr view |
| View PR with issue comments | gh pr view --comments |
| Fetch review comments (code-level) | gh api repos/{owner}/{repo}/pulls/{n}/comments |
| Extract key fields | --jq '.[] | {path, line, body}' |