一键导入
gh-get-review-comments
Retrieve all review comments from a pull request using the GitHub API. Use when you need to see what feedback has been provided on a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Retrieve all review comments from a pull request using the GitHub API. Use when you need to see what feedback has been provided on a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run section orchestrators to coordinate multi-component workflows. Use when starting work on a section.
Validate agent YAML frontmatter and configuration. Use before committing agent changes or in CI.
Reply to PR review comments using the correct GitHub API endpoint. Use when responding to inline code review feedback (not gh pr comment).
Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage.
Track implementation progress against plan. Use to monitor component delivery and identify blockers.
Check agent configuration coverage across hierarchy levels and phases. Use to ensure complete agent system coverage.
| name | gh-get-review-comments |
| description | Retrieve all review comments from a pull request using the GitHub API. Use when you need to see what feedback has been provided on a PR. |
| category | github |
Retrieve and analyze all review comments from a pull request.
# Get all review comments
gh api repos/OWNER/REPO/pulls/PR/comments
# Get comments with formatting
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | {id: .id, path: .path, body: .body}'
# Filter by reviewer
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | select(.user.login == "username")'
# Get only unresolved comments
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | select(.in_reply_to_id == null)'
Comments include:
id - Comment ID (use for replies)path - File where comment was madeline - Line number of commentbody - Comment textuser - Reviewer usernamein_reply_to_id - Parent comment ID (null if top-level)| Problem | Solution |
|---|---|
| PR not found | Verify PR number |
| Auth failure | Check gh auth status |
| No comments | API returns empty array (not an error) |
| Permission denied | Check authentication scopes |
Comments on specific file:
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | select(.path == "scylla/file.mojo")'
Comments by specific reviewer:
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | select(.user.login == "reviewer")'
Only top-level comments (not replies):
gh api repos/OWNER/REPO/pulls/PR/comments \
--jq '.[] | select(.in_reply_to_id == null)'