review-pr-comments

Solid

Fetch PR review comments via gh CLI, classify them (valid & fix / valid & skip / invalid), fix the valid ones, reply and resolve the threads, and fix any CI failures. Invoke only when the user types /review-pr-comments — never auto-trigger.

AI & Automation 10 stars 1 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
35
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /review-pr-comments — evaluate PR feedback and fix valid issues User-invoked only. `$ARGUMENTS` is an optional PR number; if empty, auto-detect from the current branch. All GitHub interaction goes through `gh` CLI — never the GitHub MCP server. The MCP server is incomplete (missing endpoints for review-thread resolution, partial coverage of comment surfaces). ## 1. Identify the PR If `$ARGUMENTS` has a number, use it. Otherwise: ```bash BRANCH=$(git branch --show-current) gh pr list --head "$BRANCH" --json number,title,url --jq '.[0]' ``` If no open PR for the branch, stop and tell the user. Capture `OWNER`, `REPO`, `PR` for the rest of the run: ```bash gh repo view --json owner,name --jq '"\(.owner.login) \(.name)"' ``` ## 2. Fetch comments — THREE separate surfaces GitHub exposes PR feedback in three places. Missing any one means you'll miss real comments. **Always check all three.** ### 2a. Inline review comments (line-anchored) These are the most common — Gemini/Claude/Copilot bots, human reviewers' line-level comments. ```bash gh api "repos/$OWNER/$REPO/pulls/$PR/comments" --paginate \ --jq '.[] | {id, path, line, body, user: .user.login, in_reply_to_id, html_url}' ``` Fields you need: `id` (REST numeric, used for reply), `path`, `line`, `body`, `user.login`, `in_reply_to_id` (non-null = follow-up reply, ignore the duplicates). ### 2b. Inline review threads (for resolution) To resolve a thread you need its **GraphQL node ID**. Fetch in one query and ...

Details

Author
IBazylchuk
Repository
IBazylchuk/paparats-mcp
Created
5 months ago
Last Updated
2 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category