Fetch PR Comments

Fetch GitHub PR comments and reviews and format them as Markdown.

291|148|Updated Apr 2, 2018
One-click install
npx skills add https://github.com/google/ground-android --skill fetch-pr-comments-google
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Fetch PR Comments
Source: https://github.com/google/ground-android/tree/main/.agent/skills/fetch_pr_comments
Command: npx skills add https://github.com/google/ground-android --skill fetch-pr-comments-google

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill retrieves comments and reviews from the current GitHub Pull Request (PR) and formats them into Markdown for easy reading and sharing.

Core Features & Use Cases

  • Retrieve PR metadata (number, title, URL, state) and related reviews.
  • Collect general comments and inline code-review comments, grouped by file and line, and output a Markdown report.
  • Use cases include generating PR summaries for stakeholders, archiving feedback, or preparing release notes.

Quick Start

Run the Python script to generate a Markdown summary for the current PR or a specified PR.

Frequently Asked Questions about Fetch PR Comments

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

FAQPage Schema
How do I extract GitHub pull request comments into a readable summary?

To extract GitHub pull request comments into a readable summary, the Skill fetches reviews, general comments, and inline code comments via the GitHub CLI, formatting the output as a grouped Markdown report.

Can I generate a Markdown summary of code reviews for a specific PR number?

Yes, you can generate a Markdown summary of code reviews for a specific PR number. The Skill accepts a PR number or URL to retrieve metadata and format the feedback into a readable document.

Do I need the GitHub CLI installed to fetch PR feedback?

Yes, you need the GitHub CLI (gh) installed to fetch PR feedback. The Skill relies on gh to access pull request data and requires Python 3 to execute the script that formats the comments into Markdown.

What is the best way to group inline code review comments by file and line?

The best way to group inline code review comments by file and line is using this Skill, which automatically organizes PR code comments, general feedback, and reviews into a structured Markdown format.

Does this pull request summary tool work with the active branch automatically?

Yes, the pull request summary tool works with the active branch automatically. It detects the current branch's PR to fetch metadata, reviews, and comments without requiring a specific PR number.