fetch-pr-comments

Fetch unresolved PR review threads and pending reviews as JSON.

1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/hvent90/hv-skills --skill fetch-pr-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetch-pr-comments
Source: https://github.com/hvent90/hv-skills/tree/main/fetch-pr-comments/skills/fetch-pr-comments
Command: npx skills add https://github.com/hvent90/hv-skills --skill fetch-pr-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

This Skill fetches unresolved review threads and pending reviews from the current branch's pull request, helping you quickly surface feedback that needs attention.

Core Features & Use Cases

  • Unresolved threads: Identify code review comments that haven't been resolved.
  • Pending reviews: See overall review states (APPROVED, CHANGES_REQUESTED, COMMENTED).
  • Output-ready: Writes a structured JSON summary to /tmp/delete-me with repo, branch, and timestamp.

Quick Start

From the repository root, run:

./scripts/fetch-pr-comments.sh

To filter by a specific user:

./scripts/fetch-pr-comments.sh username

Frequently Asked Questions about fetch-pr-comments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch unresolved PR comments from my current branch?

Fetch unresolved PR comments by running ./scripts/fetch-pr-comments.sh from your repository root. The script queries GitHub for unresolved review threads and pending reviews on the current branch's pull request, then writes structured JSON output to /tmp/delete-me with a timestamp.

Can I filter PR feedback by a specific reviewer?

Yes, filter PR feedback by reviewer by passing a username argument: ./scripts/fetch-pr-comments.sh username. The script returns only unresolved threads and pending reviews associated with that reviewer.

What do I need to use this script to pull PR comments?

You need the gh CLI installed and authenticated, jq for JSON processing, and a git repository with an open pull request on your current branch. The script requires these dependencies to query GitHub and format output.

What output format does the PR comment script produce?

The script writes structured JSON to /tmp/delete-me/{timestamp}-{repo}-{branch}.json containing unresolved_threads and pending_reviews fields, ready for downstream processing and analysis.

Why would I use this instead of viewing PR comments in GitHub directly?

Automating PR comment retrieval lets you surface unresolved feedback programmatically, integrate feedback into CI/CD workflows, filter by reviewer, and process results as JSON for custom tooling and reporting.