github-pr-unresolved-review-fetcher
Fetch unresolved PR review comments from GitHub. Use when working with pull request reviews, addressing review feedback, or checking outstanding review comments on a PR. Triggers on requests like "get PR reviews", "fetch review comments", "show unresolved comments", or "what feedback is pending on this PR".
When & Why to Use This Skill
This Claude skill automates the retrieval of unresolved review comments from GitHub Pull Requests using the GraphQL API. It streamlines the development lifecycle by helping developers quickly identify pending feedback and outstanding tasks, ensuring that no critical reviewer concerns are overlooked before merging code.
Use Cases
- Streamlining Feedback Resolution: Quickly list all unresolved comments in a complex PR to ensure every piece of reviewer feedback is addressed systematically.
- Daily Workflow Management: Use the skill to get a snapshot of pending tasks on an open PR during daily standups or before starting a coding session.
- AI-Assisted Refactoring: Provide the fetched unresolved comments to Claude to receive automated suggestions or code fixes that specifically target the reviewers' concerns.
- PR Audit and Quality Control: Verify that all discussions have been resolved in large-scale projects where comments might otherwise be lost in the GitHub UI thread.
| name | github-pr-unresolved-review-fetcher |
|---|---|
| description | Fetch unresolved PR review comments from GitHub. Use when working with pull request reviews, addressing review feedback, or checking outstanding review comments on a PR. Triggers on requests like "get PR reviews", "fetch review comments", "show unresolved comments", or "what feedback is pending on this PR". |
PR Review Fetcher
Fetch unresolved review comments from GitHub pull requests using GraphQL API.
Usage
Run the script with owner, repo, and PR number:
bash scripts/fetch_unresolved_reviews.sh <owner> <repo> <pr_number>
Example:
bash scripts/fetch_unresolved_reviews.sh yaakaito aiblio 123
Auto-detect from Current Branch
When working in a git repository with an open PR:
# Get current repo info
REPO_INFO=$(gh repo view --json owner,name -q '"\(.owner.login) \(.name)"')
OWNER=$(echo $REPO_INFO | cut -d' ' -f1)
REPO=$(echo $REPO_INFO | cut -d' ' -f2)
# Get PR number for current branch
PR_NUMBER=$(gh pr view --json number -q '.number')
# Fetch reviews
bash scripts/fetch_unresolved_reviews.sh "$OWNER" "$REPO" "$PR_NUMBER"
Output Format
Returns XML-formatted review comments:
<review-comment>
<file>src/example.ts</file>
<line>42</line>
<author>reviewer</author>
<body>Consider using a more descriptive variable name here.</body>
</review-comment>
Requirements
ghCLI authenticated with GitHubjqfor JSON processing