Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

uncazzy/pr-reviewer

Repository files navigation

PR Code Reviewer

πŸ” A Chrome extension that leverages advanced AI models to provide intelligent code review suggestions for GitHub pull requests. PR Code Reviewer analyzes your code changes in real-time, providing comprehensive feedback and enabling contextual discussions about your code directly in the GitHub interface.

✨ Features

  • πŸ€– AI-Powered Code Review: Intelligent feedback using state-of-the-art language models
  • πŸ’¬ Interactive Code Chat: Contextual discussions about specific code changes
  • πŸ“ Multi-tier Review: Initial assessment + comprehensive feedback
  • ⚑ Efficient: Quick analysis of selected files in large PRs
  • πŸ”’ Privacy First: Your API keys stay in your browser
  • βš™οΈ Configurable: Choose from multiple AI providers (OpenAI, DeepSeek, etc.)
  • πŸ”„ Re-analysis: Easily reanalyze changes after updates

πŸš€ Quick Start

  1. Install Extension

    • Install the extension from Chrome Web Store
  2. Configure

    • Add your API key and select a model in the options
  3. Load in Chrome

    • Open chrome://extensions/
    • Enable "Developer mode"
    • Click "Load unpacked"
    • Select the dist directory
  4. Start Reviewing

    • Navigate to any GitHub pull request

πŸ’‘ Usage

  1. Navigate to any GitHub pull request
  2. Click the PR Code Reviewer icon
  3. Click "Show Available Files" to load the PR files
  4. Select the files you want to review
  5. Click "Start Analysis" to begin the review process
  6. Click the "Expand Feedback" chevron icon on any file to view detailed feedback
  7. Click the "Chat" icon to access the chat interface

Note: Large files are automatically excluded from selection to ensure optimal performance.

πŸ”’ Security & Privacy

  • API keys are stored locally in your browser
  • Code is sent directly to your chosen AI provider
  • Review your provider's privacy policy before use
  • Avoid using with sensitive/proprietary code

πŸ› οΈ Development

Prerequisites

  • Node.js (v18+)
  • npm
  • Chrome browser
  • API key from supported providers (OpenAI, DeepSeek, etc.)
  • GitHub account for PR access

Local Setup

  1. Clone the repository
  2. Install dependencies (npm install)
  3. Start dev server (npm run dev)
  4. Load unpacked extension from dist

⚠️ Known Issues

  1. Mac OS Navigation Bug: On Mac OS, if not already on the /files tab, the extension may close when the browser redirects to the files tab, requiring users to click "Show Available Files" again.

  2. Page Refresh Requirement: Depending on when the extension was activated, you may need to refresh the page for it to work properly. While the app should handle this gracefully and display an error message instructing users to refresh, this is a known limitation that will be addressed in future updates.

🀝 Contributing

Contributions are welcome! Please see Contributing Guide for details on:

  • Setting up your development environment
  • Submitting pull requests
  • Coding standards
  • Bug reports and feature requests

πŸ“„ License

This project is licensed under the MIT License - see LICENSE for details.

About

πŸ” PR Code Reviewer: A Chrome extension powered by OpenAI that provides intelligent feedback and contextual discussions for GitHub pull requests. Analyze code, chat about changes, and streamline reviews directly in GitHub. πŸš€

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors