Resolve PR Comments
Systematically address code review comments.
Steps
- •
Fetch Comments
- •Get PR number:
gh pr view --json number - •Get unresolved comments:
bash
gh api /repos/:owner/:repo/pulls/<PR_NUM>/comments --jq '.[] | select(.position != null) | {id: .id, path: .path, body: .body}'
- •Get PR number:
- •
Analyze & Plan
- •List comments and propose actions (Accept/Question/Refuse).
- •
Fix & Verify
- •Apply code changes.
- •Run verification:
./scripts/check-all.sh.
- •
Push
- •
git push origin HEAD
- •
- •
Reply & Resolve
- •Reply to comments using
gh api. - •Resolve threads using GraphQL (advanced) or manual verification.
- •Reply to comments using
Tip
- •Always verify before pushing.
- •Write replies in Korean.