ワンクリックで
gh-pr-review
View and manage inline GitHub PR review comments with full thread context from the terminal
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
View and manage inline GitHub PR review comments with full thread context from the terminal
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | gh-pr-review |
| description | View and manage inline GitHub PR review comments with full thread context from the terminal |
A GitHub CLI extension that provides complete inline PR review comment access from the terminal with LLM-friendly JSON output.
Use this skill when you need to:
This tool is particularly useful for:
First, ensure the extension is installed:
gh extension install agynio/gh-pr-review
Get complete review context with inline comments and thread replies:
gh pr-review review view -R owner/repo --pr <number>
Useful filters:
--unresolved - Only show unresolved threads--reviewer <login> - Filter by specific reviewer--states <APPROVED|CHANGES_REQUESTED|COMMENTED|DISMISSED> - Filter by review state--tail <n> - Keep only last n replies per thread--not_outdated - Exclude outdated threadsOutput: Structured JSON with reviews, comments, thread_ids, and resolution status.
Reply to an existing inline comment thread:
gh pr-review comments reply <pr-number> -R owner/repo \
--thread-id <PRRT_...> \
--body "Your reply message"
Get a filtered list of review threads:
gh pr-review threads list -R owner/repo <pr-number> --unresolved --mine
Mark threads as resolved:
gh pr-review threads resolve -R owner/repo <pr-number> --thread-id <PRRT_...>
Start a pending review:
gh pr-review review --start -R owner/repo <pr-number>
Add inline comments to pending review:
gh pr-review review --add-comment \
--review-id <PRR_...> \
--path <file-path> \
--line <line-number> \
--body "Your comment" \
-R owner/repo <pr-number>
Submit the review:
gh pr-review review --submit \
--review-id <PRR_...> \
--event <APPROVE|REQUEST_CHANGES|COMMENT> \
--body "Overall review summary" \
-R owner/repo <pr-number>
All commands return structured JSON optimized for programmatic use:
Example output structure:
{
"reviews": [
{
"id": "PRR_...",
"state": "CHANGES_REQUESTED",
"author_login": "reviewer",
"comments": [
{
"thread_id": "PRRT_...",
"path": "src/file.go",
"author_login": "reviewer",
"body": "Consider refactoring this",
"created_at": "2024-01-15T10:30:00Z",
"is_resolved": false,
"is_outdated": false,
"thread_comments": [
{
"author_login": "author",
"body": "Good point, will fix",
"created_at": "2024-01-15T11:00:00Z"
}
]
}
]
}
]
}
-R owner/repo to specify the repository explicitly--unresolved and --not_outdated to focus on actionable commentsreview view output for replying--tail 1 to reduce output size by keeping only latest repliesgh pr-review review view --unresolved --not_outdated -R owner/repo --pr $(gh pr view --json number -q .number)
gh pr-review threads list --unresolved -R owner/repo <pr>gh pr-review comments reply <pr> -R owner/repo --thread-id <id> --body "..."gh pr-review threads resolve <pr> -R owner/repo --thread-id <id>gh pr-review review --start -R owner/repo <pr>gh pr-review review --add-comment -R owner/repo <pr> --review-id <PRR_...> --path <file> --line <num> --body "..."gh pr-review review --submit -R owner/repo <pr> --review-id <PRR_...> --event REQUEST_CHANGES --body "Summary"[] are returned when no data matches filters--include-comment-node-id flag adds PRRC_... IDs when needed