スキル一覧に戻る
mvillmow

gh-get-review-comments

by mvillmow

Training framework written in Mojo

11🍴 4📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


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 agent: test-engineer user-invocable: false

Get PR Review Comments

Retrieve and analyze all review comments from a pull request.

When to Use

  • Checking for unresolved review feedback
  • Analyzing reviewer feedback before fixing
  • Verifying all comments have been addressed
  • Getting comment IDs for replies

Quick Reference

# 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)'

Workflow

  1. Fetch comments: Use API to list all comments
  2. Parse output: Extract IDs and feedback
  3. Analyze feedback: Understand what needs fixing
  4. Plan fixes: Decide how to address each comment
  5. Apply fixes: Make the requested changes

Output Format

Comments include:

  • id - Comment ID (use for replies)
  • path - File where comment was made
  • line - Line number of comment
  • body - Comment text
  • user - Reviewer username
  • in_reply_to_id - Parent comment ID (null if top-level)

Error Handling

ProblemSolution
PR not foundVerify PR number
Auth failureCheck gh auth status
No commentsAPI returns empty array (not an error)
Permission deniedCheck authentication scopes

Filtering Examples

Comments on specific file:

gh api repos/OWNER/REPO/pulls/PR/comments \
  --jq '.[] | select(.path == "src/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)'

References

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です