Apply PR review feedback — reply to questions and implement requested changes. Usage: /review-apply [pr-url-or-number]
Fetch review comments on a PR, reply to questions, and implement requested code changes. By default, uses the PR associated with the current branch.
gh pr view --json number to get the PR for the current branch. If no PR exists for the current branch, ask the user to specify a PR.gh repo view --json owner,name to get the current repo's owner and name.gh api repos/{owner}/{repo}/pulls/{pr}/reviews to get all reviews. Extract the review id, body, state, and user.login for each. The body field contains the top-level review comment (the main message the reviewer wrote when submitting their review). Ignore reviews with an empty body.gh api repos/{owner}/{repo}/pulls/{pr}/comments to get all inline/file comments. Parse out the comment ID, file path, body, and diff hunk for each.gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies -f body="...". Provide clear, concise technical explanations.git checkout <branch-name>fix: address review feedback and pushgh api repos/{owner}/{repo}/pulls/{pr}/reviews/{review_id}/comments -f body="..." (this adds a comment to the review thread)gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies -f body="..." to reply in-thread/review-apply - Reviews the PR associated with the current branch/review-apply 35 - Reviews PR #35 in the current repo/review-apply https://github.com/owner/repo/pull/123 - Reviews a specific PR URL