ai-pr-reviewer  by coderabbitai

AI-based code reviewer for GitHub pull requests

Created 2 years ago
1,909 stars

Top 22.9% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides an AI-powered GitHub Action for summarizing and reviewing pull requests, designed for developers and teams seeking to automate code quality checks. It leverages OpenAI's GPT models to offer line-by-line suggestions, generate release notes, and enable conversational feedback on code changes, aiming to improve review efficiency and code quality.

How It Works

The tool functions as a GitHub Action, triggered on pull request events. It utilizes OpenAI's API (gpt-3.5-turbo for lighter tasks, gpt-4 for in-depth reviews) to analyze code diffs. Its incremental review approach, processing changes commit-by-commit, is designed to reduce OpenAI costs and noise by focusing on changes relative to the base branch. Customizable prompts allow tailoring the review focus and bot persona.

Quick Start & Requirements

  • Install by adding the provided YAML file to .github/workflows/ai-pr-reviewer.yml.
  • Requires GITHUB_TOKEN (provided by GitHub Actions) and OPENAI_API_KEY (user-provided).
  • Optional: OPENAI_API_ORG.
  • For fork PRs, use pull_request_target event and ensure correct commit checkout.
  • See: GitHub Actions Workflow Example

Highlighted Details

  • Supports both summarization and line-by-line code review.
  • Enables conversational interaction with the bot via comments (e.g., @coderabbitai generate test cases).
  • Offers "smart review skipping" for simple changes to reduce noise and cost.
  • Customizable prompts allow tailoring review objectives and bot personality.

Maintenance & Community

The project is noted as being in "maintenance mode" with a recommendation to use the "Pro version." Specific contributors, community links (Discord/Slack), or roadmap details are not provided in the README.

Licensing & Compatibility

The README does not explicitly state a license. It is compatible with GitHub Actions and requires OpenAI API access.

Limitations & Caveats

Code and diffs are sent to OpenAI servers for processing, requiring compliance checks for private repositories. The project is in maintenance mode, suggesting potential lack of further development or support for this specific version.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
41 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
3 more.

AutoPR by irgolic

0%
1k
AI-powered workflows for codebase automation
Created 2 years ago
Updated 1 year ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Chaoyu Yang Chaoyu Yang(Founder of Bento), and
6 more.

pr-agent by qodo-ai

0.7%
9k
AI tool for pull request automation, feedback, and suggestions
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.