Address any valid, outstanding pull request (PR) review comments
Resolves unresolved PR review comments by implementing fixes, testing, and marking threads as resolved.
/plugin marketplace add boneskull/claude-plugins/plugin install github@boneskull-pluginsPR_NUMBERAddress any valid, outstanding pull request (PR) review comments
Inputs: PR_NUMBER (optional) — PR number to check (defaults to current branch's PR)
Outputs: STATUS=<OK|FAIL> [key=value ...]
Identify the PR:
gh pr viewFetch review comments:
For each unresolved comment:
Output status:
STATUS=OK RESOLVED=N where N is count of resolved commentsSTATUS=FAIL ERROR="message" on failure# 1. Get unresolved review threads
gh api graphql -f query='
query {
repository(owner: "OWNER", name: "REPO") {
pullRequest(number: PR_NUM) {
reviewThreads(first: 50) {
nodes {
id
isResolved
comments(first: 10) {
nodes {
id
databaseId
body
path
line
author { login }
}
}
}
}
}
}
}
'
# 2. Add reply to review comment conversation (NOT issue comment!)
# Use the first comment's databaseId as in_reply_to
gh api repos/OWNER/REPO/pulls/PR_NUM/comments \
-f body="✅ Fixed in commit abc1234..." \
-F in_reply_to=COMMENT_DATABASE_ID
# 3. Resolve the thread
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "THREAD_ID"}) {
thread { id isResolved }
}
}
'
in_reply_to), NOT to the issue