ghpr comment resolve
ghpr comment resolve - resolve a comment thread
SYNOPSIS
Section titled “SYNOPSIS”ghpr comment resolve <pr> <thread-id> [options]DESCRIPTION
Section titled “DESCRIPTION”Mark a review comment thread as resolved in the GitHub UI. This uses the GitHub GraphQL API since the REST API does not support thread resolution.
ARGUMENTS
Section titled “ARGUMENTS”| Argument | Required | Description |
|---|---|---|
<pr> | Yes | Pull request number |
<thread-id> | Yes | Thread ID with PRRT_ prefix (from comment list output) |
OPTIONS
Section titled “OPTIONS”| Option | Description |
|---|---|
-t, --token <token> | GitHub personal access token |
-r, --repo <owner/repo> | Repository in owner/repo format |
EXIT CODES
Section titled “EXIT CODES”| Code | Meaning |
|---|---|
0 | Thread resolved successfully |
3 | Error (API error, auth error, invalid thread ID) |
EXAMPLES
Section titled “EXAMPLES”Resolve a Thread
Section titled “Resolve a Thread”ghpr comment resolve 123 PRRT_UHJQmV2aWV3VGhyZWFkOjE2NTQzMjE=Reply Then Resolve
Section titled “Reply Then Resolve”# Get IDs from comment listCOMMENT_ID=12345678THREAD_ID=PRRT_UHJQmV2aWV3VGhyZWFkOjE2NTQzMjE=
# Reply first, then resolveghpr comment reply 123 $COMMENT_ID "Fixed in latest commit"ghpr comment resolve 123 $THREAD_IDBatch Resolve All Unresolved Threads
Section titled “Batch Resolve All Unresolved Threads”ghpr comment list 123 --unresolved --format json | \ jq -r '.[].threadId' | \ while read thread_id; do ghpr comment resolve 123 "$thread_id" done- Must use the
PRRT_prefixed thread ID, not the numeric comment ID - The thread ID is shown in
ghpr comment listoutput - The PR number and repo options are for context; they can be omitted if the thread ID is globally unique
SEE ALSO
Section titled “SEE ALSO”- ghpr comment list - List comment threads
- ghpr comment reply - Reply to a comment