fetch-review-threads
БесплатноБез исполняемых скриптовНе проверенFetch every review thread of a pull request, resolved and outdated ones too, with their IDs. Use when listing PR review comments or collecting thread IDs to…
от torrust★ 539 звёзд на GitHubОб этом скилле
Fetching PR Review Threads
This is a component skill within the process-pr-review workflow. Use this skill before processing review feedback. Its purpose is to collect every review thread, including resolved and outdated ones, with enough evidence to detect re-raises and audit earlier resolutions, and to select the unresolved threads that still need a reply or resolution.
Part of larger workflow: See process-pr-review for the full end-to-end process.
Preferred Sources
Use one of these approaches:
- GitHub CLI GraphQL — reliable for all PRs, including fork-based PRs (see note below).
- Active pull request tools when they are available in the environment and the PR is not fork-based.
Fork-based PR limitation: The VS Code
currentActivePullRequestandpullRequestInViewporttools do not detect PRs opened from a fork (e.g.contributor:branch→upstream/repo). In this repository all contributor PRs are fork-based, so the GitHub CLI GraphQL approach is the reliable primary path. Use the VS Code tools only when you know the branch lives in the same repository as the target.
What to Collect
Collect every thread, resolved or not. For each thread, capture:
- thread ID
- file path and
line isResolvedandisOutdatedresolvedBylogin- each comment's author, body, and URL
resolvedBy, path, and line are self-audit evidence: they show who resolved an earlier thread
and where, so a new comment can be compared with what was already resolved. A null resolvedBy
or line means GitHub did not return one (for example, a deleted account or a rewritten line);
record it as unknown and never infer a value.
Filter to unresolved threads only when selecting threads for a reply or resolution action.
Active PR Tool Workflow
- Read the active PR.
- Inspect the whole
reviewThreadsarray, including resolved and outdated threads. - For reply or resolution actions only, select threads where
isResolved == false. - Group them by file if you plan to address them in code.
GitHub CLI GraphQL Fallback
Use GitHub CLI if you need to retrieve threads directly from the terminal.
Review-Thread Tool
Run cargo run --package github-review-threads -- from the repository root. Its fetch
subcommand writes the raw GraphQL response file consumed unchanged by the resolution workflow.
Its list and show subcommands emit one JSON object whose threads array holds every fetched
thread with isResolved, isOutdated, resolvedBy, path, and line; show adds the comments.
Pass --unresolved-only to either subcommand to select the threads that still need a reply or
resolution. reply-status always checks unresolved threads only, because it guards resolution. It
emits one JSON result with a kind (all_replied or missing_reply), the per-thread has_reply
rows and a summary, and exits 0 for both; branch on kind (for example jq -e), not on the exit
code. Exit code 1 means it could not answer.
Use jq to format or filter their result data.
The binary follows the CLI output contract: it refuses to run when stdout is a terminal (exit
code 2, tty_refusal record on stderr), so every command below pipes or redirects stdout.
Usage errors and --help are JSON usage_error records on stderr with exit code 2; the
subcommands and options are documented here instead.
Recommended usage:
# 1. Fetch all threads once
cargo run --package github-review-threads -- fetch \
--pr-number 1707 \
--output-file /tmp/pr_threads_1707.json | jq .
# 2. Read every thread, including resolved and outdated ones, with its comments
cargo run --package github-review-threads -- show \
--threads-file /tmp/pr_threads_1707.json | jq '.threads[]'
# 3. Get compact IDs, paths, and resolution evidence for tracker population
cargo run --package github-review-threads -- list \
--threads-file /tmp/pr_threads_1707.json | jq -c '.threads[]'
# 4. Select only the threads that still need a reply or resolution
cargo run --package github-review-threads -- list \
--threads-file /tmp/pr_threads_1707.json --unresolved-only | jq -c '.threads[]'
Without the tool, request the same fields the tool's query requests:
gh api graphql \
-F owner=torrust \
-F repo=torrust-tracker \
-F pullNumber=1707 \
-f query='query($owner: String!, $repo: String!, $pullNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pullNumber) {
reviewThreads(first: 100) {
nodes {
id
isResolved
isOutdated
path
line
resolvedBy {
login
}
isCollapsed
comments(first: 20) {
nodes {
url
body
createdAt
author {
login
}
}
}
}
}
}
}
}'
Keep every thr
Установить fetch-review-threads в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fetch-review-threads?
Fetch every review thread of a pull request, resolved and outdated ones too, with their IDs. Use when listing PR review comments or collecting thread IDs to resolve.
Как установить скилл fetch-review-threads?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fetch-review-threads запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic