Documentation
README
Review PR Comments
Review unresolved comments on the GitHub pull request associated with the current branch. Validate each comment, then fix legitimate issues.
Step 1 — Identify the Pull Request
- If
$ARGUMENTScontains a PR number, use it. - Otherwise, detect the current git branch and find its open PR:
gh pr view --json number,url,headRefName,baseRefName - If no PR is found, stop and tell the user.
Step 2 — Fetch All Unresolved Review Comments
Fetch PR review comments (not issue-level comments) using the GitHub CLI:
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate
This is the opening of the README. Read the full README on GitHub.