Pr Threads Resolve

posit-dev/skills/github/pr-threads-resolve

by posit-deve20b71b2ab527b7c480f4f60dcce2b18df1a99aeMITListed Oct 9, 2026Updated Oct 9, 2026

Bulk resolve unresolved PR review threads on the current branch’s PR — typically after threads have been addressed manually or via /pr-threads-address

Instructions onlySoftware Development
AI-generated overview

Bulk resolve unresolved PR review threads on the current branch's pull request using the gh CLI.

What it does
This skill provides a workflow for resolving unresolved pull request review threads on the current branch's PR. It first looks up the PR number and repository slug, then lists unresolved threads with their file, line, and comment details, asks for confirmation or selective resolution, resolves the confirmed threads, and reports a summary. It relies on the gh CLI and the gh-pr-review extension and includes example commands for listing, resolving, and bulk-resolving threads.
When to use it
Use it when review threads on a pull request have already been addressed manually or through a related workflow and now need to be marked resolved. It fits bulk cleanup of unresolved review threads on the current branch's PR.
Requirements
Requires the gh CLI and the gh-pr-review extension (installed via gh extension install agynio/gh-pr-review). Network access to GitHub is needed. No scripts ship with the skill; it is instructions only.

Prerequisites

gh pr-review extension

Before using this command, check if the gh pr-review extension is installed:

bash
gh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review

Resolve PR context first

Every 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.

Get the PR number for the current branch:

bash
gh pr view --json number -q .number

Get the repository slug:

bash
gh repo view --json nameWithOwner -q .nameWithOwner

Then 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).

Workflow

  1. Fetch and display all unresolved PR review threads
  2. Show thread details (file, line, comment text)
  3. Ask for confirmation or allow selective resolution
  4. Resolve the confirmed threads
  5. Report back with a summary of resolved threads

CLI Reference

List Review Threads

bash
gh pr-review threads list --pr <number> --repo <owner/repo>

Filter with --unresolved or --resolved.

Resolve / Unresolve Threads

bash
gh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>gh pr-review threads unresolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>

Bulk Resolve Example

Substitute the actual PR number and repo slug resolved in "Resolve PR context first" — the 42 / owner/repo below are placeholders.

bash
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

Source and attribution

Source:posit-dev/skillsingithub/pr-threads-resolveat commite20b71b

License: MIT

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal