A VSCode extension to retrieve and save all comments from a GitHub pull request, including reviews, issue comments, and descriptions.
Current Release
Features
- Retrieve all PR data including metadata, description, reviews, PR comments, and issue comments
- Saves data to
~/github-prs/<PR-title>/ directory
- Supports all comment types including AI agent comments (CodeRabbit, Codex, Qodo, Claude, etc.)
- GitHub Personal Access Token (PAT) authentication
- Handles pagination for large numbers of comments
Requirements
- GitHub Personal Access Token with
repo scope (for private repos) or public repo access
- Node.js 18+ (for development)
Setup
1. Generate a GitHub Token
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token (classic)"
- Select scopes:
repo - for private repositories
public_repo - for public repositories only
- Copy the generated token
Option A: Configure in VSCode Settings
- Open VSCode Settings (Ctrl+, or Cmd+,)
- Search for "GitHub PR Comments Retriever"
- Add your token to the "Token" field
Option B: Enter when prompted
The extension will prompt you for a token if none is configured.
Usage
- Open VSCode
- Press
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
- Type "Retrieve PR Comments" and press Enter
- Enter the repository in format
owner/repo (e.g., microsoft/vscode)
- Enter the PR number (e.g.,
123)
Extension Settings
This extension contributes the following settings:
github-pr-comments-retriever.token - GitHub Personal Access Token for API authentication
Output Files
Each PR is saved to its own folder named after the PR title under ~/github-prs/:
~/github-prs/
├── "Fix login bug"/
│ ├── metadata.json
│ ├── description.md
│ ├── pr-comments.md
│ ├── reviews.md
│ └── issue-comments.md
├── "Add dark mode support"/
│ ├── metadata.json
│ └── ...
└── ...
| File |
Description |
metadata.json |
PR metadata (number, state, author, dates, URLs, etc.) |
description.md |
PR body/description |
pr-comments.md |
PR review comments (line-by-line comments) |
reviews.md |
PR reviews (approval, changes requested, etc.) |
issue-comments.md |
Issue-level comments (general PR discussions) |
Development
# Install dependencies
pnpm install
# Watch mode for development
pnpm run watch
# Build for production
pnpm run package
Known Issues
- Rate limiting may occur without a GitHub token (60 requests/hour limit)
- Very large PRs with many comments may take longer to fetch
Developed by @vernonthedev ❤️
| |