gh-address-comments

Automate addressing GitHub PR review comments using the gh CLI.

Updated Dec 27, 2018
One-click install
npx skills add https://github.com/segersniels/dotfiles --skill gh-address-comments-segersniels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/segersniels/dotfiles/tree/main/.opencode/skill/gh-address-comments
Command: npx skills add https://github.com/segersniels/dotfiles --skill gh-address-comments-segersniels

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Addresses and automates the process of handling review and issue comments on a GitHub PR for the current branch using the gh command-line interface, reducing manual triage time.

Core Features & Use Cases

  • Inspect and fetch all PR comments, reviews, and inline threads for the current branch.
  • Present a structured summary and guide user in selecting which comments to address.
  • Apply the chosen fixes or follow-up actions, prompting re-authentication if needed.

Quick Start

Fetch the PR comments and review threads for the current branch and begin addressing them by following the prompts.

Frequently Asked Questions about gh-address-comments

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

FAQPage Schema
How do I automate addressing GitHub PR review comments?

Automate addressing GitHub PR review comments by using the gh CLI to discover the open PR for your current branch, aggregate reviews and inline threads, and guide you through applying fixes interactively.

What's the best way to triage pull request comments for my current branch?

Triage pull request comments for your current branch by aggregating PR reviews, issue comments, and inline threads into a structured summary, then selecting and applying chosen follow-up actions through guided prompts.

Do I need gh authentication to manage PR comments?

Yes, gh authentication is required to fetch and apply responses to PR comments. The workflow prompts for re-authentication if needed during the comment resolution process.

Can I resolve inline review threads on a GitHub pull request from the command line?

Yes, you can resolve inline review threads from the command line by running scripts that fetch PR threads via the gh CLI and present a guided set of actions to apply fixes directly.

What are the limitations of automating GitHub PR comment management via gh CLI?

Limitations include dependency on gh CLI authentication validity and the requirement to run scripts within a branch that has an open PR, as the workflow discovers the PR based on the current branch context.