| name | pr-comments |
| description | Fetch GitHub PR comments for the current branch to refresh context |
Fetch all comments on the GitHub pull request associated with the current branch and present them as context.
Steps
- Run
git branch --show-current to get the current branch name
- Run
gh pr view --json number,title,url,comments,reviews,reviewRequests --jq '.' to get the PR details and comments for the current branch
- Present a summary including:
- PR title and URL
- Review requests (who has been asked to review)
- Review comments (from
reviews), grouped by reviewer, including:
- Reviewer name
- Review state (approved, changes requested, commented)
- Review body if present
- Ignore resolved comments — only show unresolved ones
- General PR comments (from
comments), each showing:
- Author
- Timestamp
- Comment body
- If no PR exists for the current branch, inform the user