reviewing-prs

Review GitHub pull requests by analyzing diffs and posting inline comments.

Updated Nov 23, 2022
One-click install
npx skills add https://github.com/tjmgregory/.dotfiles --skill reviewing-prs-tjmgregory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reviewing-prs
Source: https://github.com/tjmgregory/.dotfiles/tree/main/agents/skills/reviewing-prs
Command: npx skills add https://github.com/tjmgregory/.dotfiles --skill reviewing-prs-tjmgregory

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of reviewing GitHub Pull Requests (PRs) by analyzing code changes and providing actionable, inline feedback directly on the diff.

Core Features & Use Cases

  • File-by-File Analysis: Reviews PRs by examining each changed file individually.
  • Inline Comment Posting: Creates comments directly on specific lines of code within the PR diff.
  • Thread Management: Handles replying to existing comment threads and identifying actionable discussions.
  • Use Case: When a developer submits a PR, this Skill can automatically review the code for potential bugs, security vulnerabilities, or style issues, posting precise feedback on the relevant lines, thus speeding up the review cycle.

Quick Start

Use the reviewing-prs skill to review the pull request with number 123.

Frequently Asked Questions about reviewing-prs

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

FAQPage Schema
How do I automate GitHub PR reviews with inline comments on code diffs?

Automating GitHub PR reviews involves analyzing code diffs file-by-file and posting inline comments directly on specific diff lines. This Skill fetches PR data, identifies issues, and submits reviews with events like COMMENT, APPROVE, or REQUEST_CHANGES to streamline the review cycle.

Does the automated PR review tool require the gh CLI to fetch pull request data?

Yes, the automated PR review tool requires the gh CLI dependency to fetch pull request data and interact with the GitHub API. It handles pagination for comments and provides error handling for common API issues encountered during the review process.

Can I post inline code review comments on existing GitHub PR threads?

Yes, you can post inline code review comments on existing GitHub PR threads. The tool handles thread management by replying to existing comment threads and identifying actionable discussions within the pull request diff.

What is the best way to review a GitHub pull request file-by-file?

The best way to review a GitHub pull request file-by-file is to analyze each changed file individually. This Skill examines code changes per file, identifies potential bugs or style issues, and posts precise feedback directly on the relevant lines of the PR diff.

How do I approve a pull request or request changes via automated code review?

To approve a pull request or request changes via automated code review, the tool submits reviews with specific events like APPROVE or REQUEST_CHANGES. It analyzes the code diff and posts inline comments before finalizing the review submission.