pr-review-comment-triage

Automate PR review comment triage using GitHub CLI and GraphQL.

Updated Oct 19, 2022
One-click install
npx skills add https://github.com/iradkot/shaniDms22 --skill pr-review-comment-triage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review-comment-triage
Source: https://github.com/iradkot/shaniDms22/tree/main/.github/skills/pr-review-comment-triage
Command: npx skills add https://github.com/iradkot/shaniDms22 --skill pr-review-comment-triage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates end-to-end handling of PR review comments for the current branch: detect a PR, fetch open review comments, evaluate each, fix issues when appropriate, resolve threads after fixes, and reply when comments are not applicable or need clarification.

Core Features & Use Cases

  • Automated PR review triage: Detects open review comments and threads, identifies unresolved conversations, and surfaces actionable items.
  • Critical evaluation: Assesses validity of each comment and determines if a fix is required, considering root causes rather than superficial changes.
  • Auto-respond & resolve: Drafts replies, optionally applies fixes, commits before replying, and resolves threads when appropriate.
  • Workflow prerequisites: Provides commands and prerequisites for using gh CLI and GraphQL to manage PR reviews end-to-end.

Quick Start

Push a branch with an open PR and run the triage workflow against that PR.

Frequently Asked Questions about pr-review-comment-triage

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

FAQPage Schema
How do I automate GitHub PR review comment triage?

Automate PR review comment triage by using a workflow with GitHub CLI and GraphQL to fetch reviews, group unresolved threads, draft replies, apply fixes, and resolve threads. It evaluates each comment's validity to determine if a fix is required.

What is the best way to resolve unresolved PR review threads automatically?

The best way to resolve unresolved PR review threads is an automated workflow that evaluates comments, applies fixes, commits when authorized, and resolves the threads. It drafts replies when comments need clarification or are not applicable.

Do I need GitHub CLI to manage PR review threads end-to-end?

Yes, you need GitHub CLI and GraphQL to manage PR review threads end-to-end. The workflow prerequisites include specific commands and setups for using these tools to fetch reviews and resolve conversations for the current branch.

How does automated PR review triage handle invalid comments?

Automated PR review triage handles invalid comments by critically assessing the validity of each comment. When a comment is not applicable or needs clarification, it drafts a reply instead of applying a fix, ensuring root causes are considered.

Can I commit fixes directly when triaging GitHub PR comments?

Yes, you can commit fixes directly when triaging GitHub PR comments. The workflow applies fixes when appropriate and commits them before replying, subsequently resolving the thread when the fix is complete.