Skip to content
Back to skills

Fetch Pr Comments

ASecurity

Fetch unresolved PR review comments and feedback on the current branch. Use when you need to address outstanding PR review items or see what feedback needs to be resolved. Optionally filter by a specific reviewer.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
toolsbashgit

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill fetch-pr-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch Pr Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch Pr Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-fetch-pr-comments/badge)](https://www.skillsdirectory.com/skills/majiayu000-fetch-pr-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-pr-comments
description: Fetch unresolved PR review comments and feedback on the current branch. Use when you need to address outstanding PR review items or see what feedback needs to be resolved. Optionally filter by a specific reviewer.
allowed-tools: Bash, Read, Write
---

# Fetch PR Comments

Fetches unresolved review threads and pending reviews from the current branch's pull request.

## Usage

Run the script from the repository root:

```bash
# Fetch all unresolved comments
./scripts/fetch-pr-comments.sh

# Fetch unresolved comments from a specific user
./scripts/fetch-pr-comments.sh username
```

## Output

Results are saved to `/tmp/delete-me/{timestamp}-{repo}-{branch}.json`.

Example output structure:

```json
{
  "pr_number": 123,
  "repo": "owner/repo",
  "branch": "feature/example",
  "fetched_at": "2025-12-17T12:00:00Z",
  "filter_user": null,
  "unresolved_threads": [
    {
      "path": "src/example.ts",
      "line": 42,
      "comments": [
        {
          "author": "reviewer",
          "body": "Consider using a more descriptive name",
          "created_at": "2025-12-16T10:30:00Z"
        }
      ]
    }
  ],
  "pending_reviews": [
    {
      "user": "reviewer",
      "state": "CHANGES_REQUESTED",
      "body": "A few items to address",
      "submitted_at": "2025-12-16T10:00:00Z"
    }
  ]
}
```

## What It Captures

- **Unresolved threads**: Inline code review comments that haven't been marked as resolved
- **Pending reviews**: Overall review submissions (APPROVED, CHANGES_REQUESTED, COMMENTED)

## Requirements

- GitHub CLI (`gh`) must be installed and authenticated
- Must be run from within a git repository
- Current branch must have an open pull request

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.