gh-address-comments

Fetch PR comments, reviews, and inline threads via gh CLI.

18|1|Updated Nov 5, 2015
One-click install
npx skills add https://github.com/cristianoliveira/dotfiles --skill gh-address-comments-cristianoliveira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/cristianoliveira/dotfiles/tree/main/ai/shared/skills/gh-address-comments
Command: npx skills add https://github.com/cristianoliveira/dotfiles --skill gh-address-comments-cristianoliveira

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you quickly locate and respond to comments and threads on the pull request associated with your current branch by leveraging the GitHub CLI. It eliminates manual hunting and consolidates feedback into actionable steps.

Core Features & Use Cases

  • Fetch all PR conversation comments, reviews, and inline threads for the current branch
  • List and summarize items requiring changes to guide user actions
  • Support cross-repo PR triage by addressing selected comments via follow-up steps

Quick Start

Run the PR Comment Handler for the current branch: python scripts/fetch_comments.py > pr_comments.json

Frequently Asked Questions about gh-address-comments

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

FAQPage Schema
How do I fetch and review all GitHub PR comments from the CLI?

You can fetch and review all GitHub PR comments from the CLI by running a Python-based GraphQL workflow that collects conversation comments, reviews, and inline threads for the current branch into a consolidated JSON output.

What is the best way to triage pull request feedback across multiple repositories?

The best way to triage pull request feedback across repositories is to use a CLI tool that aggregates PR conversation comments, reviews, and inline threads, summarizing items requiring changes to guide cross-repo remediation actions.

Do I need GitHub CLI authentication to retrieve inline PR threads?

Yes, you need GitHub CLI authentication to retrieve inline PR threads, as the workflow relies on the gh CLI to authorize and execute the GraphQL queries needed to collect and organize pull request data.

How does a GraphQL workflow collect PR conversation data for a specific branch?

A GraphQL workflow collects PR conversation data for a specific branch by querying the GitHub API through the gh CLI, fetching all associated comments, reviews, and inline threads to organize them for user-driven action.

Can I export GitHub PR reviews and comments into a JSON file?

Yes, you can export GitHub PR reviews and comments into a JSON file by running the fetch_comments.py script, which outputs the collected pull request conversation data directly to your terminal for file redirection.