{"id":"pr-threads-resolve","name":"pr-threads-resolve","summary":"現在のブランチのPR上で未解決のPRレビュースレッドを一括解決します。","body":"## Prerequisites\n\n### gh pr-review extension\n\nBefore using this command, check if the gh pr-review extension is installed:\n\n```bash\ngh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review\n```\n\n### Resolve PR context first\n\nEvery `gh pr-review` subcommand requires both `--pr <number>` and `--repo <owner/repo>` — do not omit either. Look the values up once at the start of the workflow and substitute the literal numbers and slugs into every later command.\n\nGet the PR number for the current branch:\n\n```bash\ngh pr view --json number -q .number\n```\n\nGet the repository slug:\n\n```bash\ngh repo view --json nameWithOwner -q .nameWithOwner\n```\n\nThen pass the resulting values directly — e.g. `--pr 42 --repo posit-dev/skills` — on every subsequent `gh pr-review` call in this workflow (list, resolve, view, reply).\n\n## Workflow\n\n1. Fetch and display all unresolved PR review threads\n2. Show thread details (file, line, comment text)\n3. Ask for confirmation or allow selective resolution\n4. Resolve the confirmed threads\n5. Report back with a summary of resolved threads\n\n## CLI Reference\n\n### List Review Threads\n\n```bash\ngh pr-review threads list --pr <number> --repo <owner/repo>\n```\n\nFilter with `--unresolved` or `--resolved`.\n\n### Resolve / Unresolve Threads\n\n```bash\ngh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>\ngh pr-review threads unresolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>\n```\n\n### Bulk Resolve Example\n\nSubstitute the actual PR number and repo slug resolved in \"Resolve PR context first\" — the `42` / `owner/repo` below are placeholders.\n\n```bash\ngh pr-review threads list --pr 42 --unresolved --repo owner/repo | \\\n  jq -r '.threads[].id' | \\\n  xargs -I {} gh pr-review threads resolve --thread-id {} --pr 42 --repo owner/repo\n```","author":"@posit-dev","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/posit-dev/skills/tree/main/github/pr-threads-resolve","license":"MIT","category":"document","lang":"en","tokens":466,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}