fetch-unresolved-comments
Installation
SKILL.md
Fetch Unresolved PR Review Comments
Uses GitHub's GraphQL API to fetch only the unresolved review-thread comments from a pull request, grouped by file.
When to Use
- You need only the unresolved review comments from a PR.
- You want to filter out feedback that has already been resolved.
Instructions
-
Get the PR URL:
- First check for environment variables: if
PR_NUMBERandGITHUB_REPOSITORYare set, construct the URL ashttps://github.com/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}. - Otherwise, use
gh pr view --json url -q '.url'to get the current branch's PR URL.
- First check for environment variables: if