github-pr-review-operation
CommunityAutomate PR reviews with gh CLI.
AuthorCain96
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates GitHub PR review tasks using the gh CLI. Extract PR info, view diffs with line numbers, retrieve and post comments, create inline comments, and reply to comments, reducing manual PR review time.
Core Features & Use Cases
- PR information retrieval: Get title, body, author, state, base/head refs, and URL.
- Diffs with line numbers: View diffs with line numbers to pinpoint changes.
- Comment management: Retrieve and post comments, including inline code comments.
- Inline reviews: Create inline comments on specific files/lines and reply to existing comments.
- Use Case: When reviewing a PR, quickly gather context and leave precise inline feedback without leaving the CLI.
Quick Start
Use gh to view PR 123 and add a comment: gh pr view 123 --repo OWNER/REPO --json title,body,author,state,baseRefName,headRefName,url gh pr comment 123 --repo OWNER/REPO --body "Please address the reviewer notes."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: github-pr-review-operation Download link: https://github.com/Cain96/dotfiles/archive/main.zip#github-pr-review-operation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.