Review PR comments from GitHub. Fetches inline review comments and issue comments, classifies by review.md prefix semantics (blocking vs non-blocking), and summarizes actionable items. Use when the user asks to check PR feedback, see reviewer comments, or address PR review.
git branch --show-currentgh repo view --json nameWithOwner -q .nameWithOwnerRead .github/review.md before classifying comments. It defines blocking vs non-blocking prefixes and the expected comment format.
Senior reviewers repeat the same feedback on agent-written PRs. When a comment maps to one of these, tag it so the pattern is visible; the durable rules and evidence live in wiki/concepts/pr-review-lessons.md:
| undefined, no loose unknown.useId() for ids, truthful empty states, spec honored at every range.git check-ignore, curl -L, render the real route) before marking resolved.Given PR number $ARGUMENTS (required), fetch and triage all reviewer comments.
Run these two gh api calls to get both comment types:
# Inline review comments (attached to specific lines)
gh api repos/{owner}/{repo}/pulls/{pr}/comments --paginate
# Issue-level comments (general discussion)
gh api repos/{owner}/{repo}/issues/{pr}/comments --paginateIf --repo is provided in arguments, use that. Otherwise infer from the git remote.
Filter out bot comments (author login ending in [bot] or bot).
For each human comment, extract:
.user.loginreview (inline) or discussion (issue-level).path and .line (review comments only).body.github/review.md prefix semanticsblocking:, must-fix:, bug:, security:, or tests:.created_atOutput a table grouped by blocking status:
## Blocking (must resolve before merge)
| # | Author | File:Line | Comment |
|---|--------|-----------|---------|
| 1 | anny | main.tf:159 | concern about subnet tag collision across envs |
## Non-blocking (address or acknowledge)
| # | Author | File:Line | Comment |
|---|--------|-----------|---------|
| 1 | anny | hooks.py:37 | (tagged Windsor re: except clause syntax) |For comments without a prefix, classify as non-blocking per review.md default.
For each blocking comment, suggest the minimal fix. If the comment is a question, draft a reply. If it requires a code change, identify the file and describe what to change.
If you need to check out the PR branch to verify a comment (e.g., reproduce a bug or read context around a diff), use worktree isolation per @worktree-first.md. Do not switch branches in the main checkout.