Responds to GitHub Copilot review comments on PRs. Use when addressing review comments or reviewing PRs.
Structured workflow for responding to GitHub Copilot's automated code review comments on PRs. Key principle: critical evaluation - not all Copilot suggestions are valid.
Retrieve review comments with pagination, filtering to Copilot only:
gh api --paginate repos/{owner}/{repo}/pulls/{pr}/comments \
| jq '[.[] | select(.in_reply_to_id == null and .user.login == "Copilot")]'
Filter criteria:
in_reply_to_id == null - Skip already-replied comments (avoid re-replying)Required fields from each comment:
id - Comment ID (needed for Step 5 replies)path - File pathline / original_line - Line number (may be null for outdated)diff_hunk - Code context (fallback when line is null)body - Comment contentFor each comment, spawn a subagent in parallel using Task tool:
Task tool (subagent_type: "general-purpose", run_in_background: true)