github-pull-request-handling

Fetch unresolved GitHub PR conversations and reply with commit references.

5|3|Updated Jun 18, 2024
One-click install
npx skills add https://github.com/Unique-AG/ai --skill github-pull-request-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-pull-request-handling
Source: https://github.com/Unique-AG/ai/tree/main/.claude/skills/github-pull-request-handling
Command: npx skills add https://github.com/Unique-AG/ai --skill github-pull-request-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill identifies and surfaces unresolved GitHub pull-request conversations, guiding developers to craft focused fixes and respond with commit references that reviewers can easily trace.

Core Features & Use Cases

  • Fetch unresolved PR conversations and present them in a readable format with file path and line context.
  • Create targeted fixes and commit them one by one, attaching each commit reference to the corresponding thread.
  • Reply to review comments via the GitHub API with links to the associated commits for seamless traceability.

Quick Start

Launch the skill to fetch unresolved PR conversations and apply fixes with a separate commit per issue.

Frequently Asked Questions about github-pull-request-handling

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

FAQPage Schema
How do I find unresolved GitHub pull request conversations using the command line?

To find unresolved GitHub pull request conversations, you can use the GitHub CLI and GraphQL API to fetch review threads and present them in a readable format with file path and line context. This surfaces outstanding feedback needing attention.

How do I link a commit to a specific PR review thread on GitHub?

To link a commit to a PR review thread, apply your fix in a separate commit and use the GitHub API to post a reply containing the commit reference. This creates a traceable connection between the code change and the feedback.

Can I automate replying to GitHub PR review comments with commit references?

Yes, you can automate replying to GitHub PR review comments by using the GitHub API to post responses with associated commit links. This streamlines reviewer coordination by providing seamless traceability for applied fixes.

Do I need to install jq and gh to automate GitHub PR review handling?

Yes, you need both the GitHub CLI (gh) and jq installed to automate GitHub PR review handling. The skill uses gh to interact with the API and jq to parse the JSON data fetched from GitHub pull request threads.

What is the best way to organize commits when resolving multiple GitHub PR conversations?

The best way to organize commits when resolving multiple GitHub PR conversations is to create a separate, targeted commit for each individual issue. This allows you to attach specific commit references directly to their corresponding review threads.

Why does fetching unresolved PR threads require the GitHub GraphQL API?

Fetching unresolved PR threads requires the GitHub GraphQL API because it allows precise querying of nested review thread data within a pull request. Combined with the GitHub CLI, this extracts specific conversation contexts efficiently.