pr-comments

Fetch GitHub pull request comments from a repository branch using the GitHub API and gh CLI.

30|4|Updated May 3, 2026
One-click install
npx skills add https://github.com/OniroHuaver/openwarp --skill pr-comments-onirohuaver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-comments
Source: https://github.com/OniroHuaver/openwarp/tree/main/resources/bundled/skills/pr-comments
Command: npx skills add https://github.com/OniroHuaver/openwarp --skill pr-comments-onirohuaver

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of fetching and reviewing GitHub pull request comments, enabling developers to quickly review comments and make informed decisions without the need for manual navigation.

Core Features & Use Cases

  • Fetch PR Comments: Extract all review comments from the current branch's GitHub pull request.
  • Display Comments: Present the comments to the user for review.
  • User Interaction: Allow the user to interact with the comments and decide how to proceed.
  • Use Case: When you want to quickly review all the comments on your open pull request.

Quick Start

Run the script fetch_github_review_comments.py from the root of your git repository.

Frequently Asked Questions about pr-comments

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

FAQPage Schema
How do I fetch and review GitHub pull request comments for a specific branch?

Fetch GitHub pull request comments by running the script from your git repository root. It uses the GitHub API and gh CLI to extract all review comments from the current branch, displaying them for code review.

Do I need the gh CLI tool installed to fetch PR review comments?

Yes, you need the gh CLI tool installed locally to fetch PR review comments. The script relies on gh for GitHub API authentication and repository access to successfully extract pull request comments.

Can I quickly view all comments on my open pull request without manual navigation?

View all comments on your open pull request by executing the fetch script in your repository. It instantly extracts and presents review comments, enabling developers to make informed decisions without manual navigation.

How does this approach handle authentication for accessing GitHub repository comments?

Authentication for accessing GitHub repository comments is handled through the local gh CLI tool. You must have gh installed and authenticated to allow the script to access the GitHub API and fetch pull request data.

What is the best way to extract code review comments from a GitHub PR?

The best way to extract code review comments is running the fetch script from your repository root. It leverages the GitHub API and local gh CLI to instantly pull all review comments from the specified repository branch.

Why are my GitHub PR comments not fetching correctly?

GitHub PR comments fail to fetch if the gh CLI tool is unauthenticated or missing. Ensure gh is installed and properly authenticated to your GitHub account to allow the script API access to the repository branch.