Skip to main content

Add your description here

Project description

PR Checker AI 💚

An intelligent pull request review tool that leverages both OpenAI and Anthropic AI models to provide comprehensive code reviews directly on your GitHub pull requests.

Features

  • Dual AI Analysis: Get reviews from both OpenAI GPT and Anthropic Claude models for comprehensive feedback
  • Automated PR Comments: Automatically posts review results as comments on your GitHub pull requests
  • Rich Console Output: Beautiful terminal output with tables and markdown rendering
  • Flexible Model Selection: Choose specific models from OpenAI and Anthropic
  • GitHub CLI Integration: Uses GitHub CLI for seamless PR interaction

Prerequisites

Before using PR Checker AI, ensure you have:

  1. GitHub CLI (gh) installed and authenticated
  2. OpenAI API Key - Set as OPENAI_API_KEY environment variable
  3. Anthropic API Key - Set as ANTHROPIC_API_KEY environment variable

Installation

  1. Install pr-checker-ai:
pip install pr-checker-ai
  1. Set up your API keys:
export OPENAI_API_KEY="your-openai-api-key"
export ANTHROPIC_API_KEY="your-anthropic-api-key"
  1. Ensure GitHub CLI is authenticated:
gh auth login

Usage

Basic Usage

Review a pull request (flag -p, --pr) using default models (gpt-4.1 for OpenAI and claude-sonnet-4-0 for Anthropic):

pr-checker-cli -p 123

Advanced Usage

Specify custom models for both providers using the flags:

  • -o, --openai: OpenAI model to use (default: "gpt-4.1")
  • -a, --anthropic: Anthropic model to use (default: "claude-sonnet-4-0")
pr-checker-cli -p 456 -o "gpt-5" -a "claude-3-7-sonnet-latest"

How It Works

  1. Fetches PR Details: Uses GitHub CLI to collect general PR information and diff changes
  2. AI Analysis: Sends PR details to both OpenAI and Anthropic models for review
  3. Processes Responses: Filters and formats responses from both AI providers
  4. Posts Comment: Creates a formatted comment on the PR with both reviews
  5. Console Output: Displays results in a beautiful table format in your terminal

Output Format

The tool generates a structured comment on your PR containing:

  • OpenAI Review: Analysis from the specified OpenAI model
  • Anthropic Review: Analysis from the specified Anthropic model
  • Approval Status: Each AI provides an approve/not approve recommendation
  • Automated Footer: Indicates the comment was generated by PR Checker AI

Contributing

We welcome contributions! Please read our Contributing Guide to get started.

License

This project is licensed under the MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pr_checker_ai-0.1.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pr_checker_ai-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pr_checker_ai-0.1.0.tar.gz.

File metadata

  • Download URL: pr_checker_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.6

File hashes

Hashes for pr_checker_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94b754bec5f03034d3f79d89aa54c179d5cfe6d32bbb379b171cb752c46d7712
MD5 93fe98752da05212e218b1ce1df146ae
BLAKE2b-256 0eb93eb435c99158f66c533ed450965b2eff8a92499ba3b8399930a69d69c005

See more details on using hashes here.

File details

Details for the file pr_checker_ai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pr_checker_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5909c951fed445190de40285ac3b4c2440c801cdc658dc5aaad5118650cb80f
MD5 1d1ddfa5404f53864e96d46aca310d44
BLAKE2b-256 3d250766153173d1d47cc5b63d3ad5a39b331a21e7bb8c56618f35705f03ccd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page