my-pr-comments

Fetch GitHub PR review comments and format them as structured JSON.

2|2|Updated May 30, 2025
One-click install
npx skills add https://github.com/wodsmith/thewodapp --skill my-pr-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: my-pr-comments
Source: https://github.com/wodsmith/thewodapp/tree/main/.claude/skills/my-pr-comments
Command: npx skills add https://github.com/wodsmith/thewodapp --skill my-pr-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates pulling the review comments for the current GitHub PR, enabling faster context gathering and collaborative feedback.

Core Features & Use Cases

  • PR Number Discovery: Detect the current PR with gh pr view.
  • Comment Retrieval: Fetch comments via gh api and paginate for complete context.
  • Structured Output: Present data as file, line, body, and author for downstream tooling.

Quick Start

gh pr view --json "url" | jq '.url' gh api repos/corpaxe/{reponame}/pulls/{prnumber}/comments --paginate --jq '.[] | {file: .path, line: .line, body: .body, author: .user.login}'

Frequently Asked Questions about my-pr-comments

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

FAQPage Schema
How do I fetch PR review comments for the current branch?

Fetching PR review comments retrieves all inline and general feedback across files for your current branch. Use gh pr view to detect the PR, then gh api with pagination and jq to format comments as structured JSON containing file, line, body, and author fields for downstream processing.

Can I automate pulling GitHub PR comments into my workflow?

Yes. Automation pulls PR review comments programmatically using Bash tooling—gh pr view, gh api, and jq—eliminating manual context gathering. Output as structured JSON enables integration with other tools and faster collaborative feedback review.

What information can I extract from GitHub PR comments?

You can extract file path, line number, comment body, and author login from PR review comments. This structured data supports filtering, searching, and feeding comments into downstream analysis or notification systems without manual copying.

Do I need GitHub CLI to retrieve PR comments?

Yes. Retrieving PR comments requires GitHub CLI (gh), jq for JSON processing, and Bash. These tools query PR metadata, paginate results across multiple API calls, and format output into usable structured data.

How do I handle PR comments when there are many pages of feedback?

Pagination handles large comment sets automatically. The gh api --paginate flag retrieves all comments across pages, and jq processes the complete result set into a single structured JSON output with all file, line, body, and author records.