원클릭으로
pr-threads-resolve
Bulk resolve unresolved PR review threads. Useful after manually addressing threads or after using /pr-threads-address.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Bulk resolve unresolved PR review threads. Useful after manually addressing threads or after using /pr-threads-address.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | pr-threads-resolve |
| description | Bulk resolve unresolved PR review threads. Useful after manually addressing threads or after using /pr-threads-address. |
| compatibility | Designed for Claude Code; requires gh CLI and gh-pr-review extension |
| metadata | {"author":"Barret Schloerke (@schloerke)","version":"1.0"} |
| license | MIT |
Usage: /pr-threads-resolve [PR_NUMBER]
Description: Bulk resolve unresolved PR review threads. Useful after manually addressing threads or after using /pr-threads-address.
Note: If PR_NUMBER is omitted, the command will automatically detect and use the PR associated with the current branch.
Use this command when you have already addressed PR review threads and want to bulk resolve them, or when you need to clean up threads that are no longer relevant.
/pr-threads-resolve 42
This will:
Before using this command, check if the gh pr-review extension is installed:
gh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review
Enumerate all review threads with filtering:
gh pr-review threads list --pr <number> --repo <owner/repo>
Common filters:
--unresolved — Show only unresolved threads--resolved — Show only resolved threadsDisplay reviews, inline comments, and replies with full context:
gh pr-review review view --pr <number> --repo <owner/repo>
Common filters:
--reviewer <login> — Filter by specific reviewer--states <list> — Filter by review state (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED)--unresolved — Show only unresolved threads--not_outdated — Exclude outdated threads--tail <n> — Show only the last n replies per thread--include-comment-node-id — Include GraphQL node IDs for repliesToggle thread resolution status:
# Resolve a thread
gh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>
# Unresolve a thread
gh pr-review threads unresolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>
# Get all unresolved thread IDs and resolve them
gh pr-review threads list --pr 42 --unresolved --repo owner/repo | \
jq -r '.threads[].id' | \
xargs -I {} gh pr-review threads resolve --thread-id {} --pr 42 --repo owner/repo
Repository Context: Always include --repo owner/repo to ensure correct repository context, or run commands from within a local clone of the repository.
Thread IDs: Thread IDs (format PRRT_...) can be obtained from review view --include-comment-node-id or threads list commands.
State Filters: When using --states, provide a comma-separated list: --states APPROVED,CHANGES_REQUESTED
Unresolved Focus: Use --unresolved --not_outdated together to focus on actionable comments that need attention.