pr-review-comments

Fetch unresolved pull request comments via GitHub CLI and GraphQL.

1|Updated Jun 17, 2019
One-click install
npx skills add https://github.com/strayer/dotfiles --skill pr-review-comments-strayer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review-comments
Source: https://github.com/strayer/dotfiles/tree/main/dot_agents/skills/pr-review-comments
Command: npx skills add https://github.com/strayer/dotfiles --skill pr-review-comments-strayer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This tool helps reviewers quickly identify unresolved discussions on the GitHub pull request tied to the current branch, accelerating feedback loops and merge readiness.

Core Features & Use Cases

  • Fetches all unresolved review comments for the pull request associated with the current branch.
  • Displays file path, line number, author, and direct URL for each comment to streamline the review workflow.
  • Works with GitHub CLI (gh) and GraphQL to retrieve up-to-date feedback from collaborators.
  • Use Case: You’re reviewing a feature branch and want a concise digest of outstanding feedback to guide your next update.

Quick Start

Run the fetch script to retrieve unresolved comments for the current branch PR and review the formatted output.

Frequently Asked Questions about pr-review-comments

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

FAQPage Schema
How do I fetch unresolved pull request comments for my current branch?

To fetch unresolved pull request comments, run the script to query GitHub CLI and GraphQL for the current branch's PR, retrieving file paths, line numbers, authors, and direct URLs for outstanding review feedback.

What is the best way to get a digest of outstanding GitHub PR review feedback?

Getting a digest of outstanding GitHub PR review feedback involves querying unresolved comments via GraphQL to display file paths, line numbers, and comment URLs, streamlining the review workflow for quicker resolution.

Do I need GitHub CLI and jq installed to retrieve unresolved PR comments?

Yes, you need GitHub CLI (gh) and jq installed to retrieve unresolved PR comments. The script operates in read-only mode against PR data using gh and GraphQL, formatting the JSON results with jq for easy consumption.

Can I use this to find unresolved review comments on any feature branch?

You can use this to find unresolved review comments on your current feature branch. It automatically targets the pull request tied to your active branch and fetches up-to-date feedback from collaborators.

Does fetching unresolved PR comments modify my repository data?

Fetching unresolved PR comments does not modify your repository data. The script operates in read-only mode against pull request data via GitHub CLI and GraphQL, strictly retrieving information without applying changes.

Why should I use GraphQL instead of the standard GitHub CLI for PR review comments?

Using GraphQL instead of standard GitHub CLI commands for PR review comments allows precise filtering of unresolved threads. It retrieves specific fields like file paths, line numbers, and direct URLs efficiently.