A tool to analyze GitHub pull requests, fetch changed files, and run repomix analysis on the code.
- Automatically fetches PR diffs and details
- Downloads all changed files from the PR
- Runs Repomix analysis to obtain changed files in a format compatible with LLMs
- Generates LLM prompts for code review
- Supports different output formats (XML, Markdown, Plain Text)
- Includes file list and copy functionality
- Clone this repository
- Install dependencies:
npm install- Create a
.envfile from the example:
cp .env.example .env- Add your GitHub token to the
.envfile:
GITHUB_TOKEN=your_github_personal_access_token
- Start the server:
npm start-
Open your browser and navigate to
http://localhost:3000 -
Enter a GitHub PR URL and click "Analyze PR"
-
The app will:
- Fetch the PR details and diff
- Download all changed files
- Run repomix analysis
- Display the results
-
You can:
- Change the repomix output format
- Generate an LLM prompt for code review
- Copy the diff, PR details, or repomix output
- Uses GitHub API to fetch PR diffs and file content
- Creates a unique directory for each PR's files
- Runs repomix analysis on the downloaded files
- Preserves file structure and paths
- Simple UI for entering PR URLs
- Checkboxes for customizing the LLM prompt
- Format selection for repomix output
- File list showing all changed files
For the GitHub token, you need at least:
reposcope for accessing private repositoriesread:userscope for accessing PR author details
MIT