Skip to main content

AI-powered Pull Request Generator & Reviewer - Automate PR titles, descriptions, and code reviews

Project description

AutoPR — AI-powered Pull Request Generator & Reviewer

PyPI version Try the demo

AutoPR automates the repetitive parts of pull requests for teams: it writes concise PR titles & descriptions, validates CI/tests, runs deterministic static and lint checks, and provides an AI-assisted review summary.

Quickstart

Install from PyPI (Recommended)

pip install autopr

Install from Source

git clone https://github.com/surenkotian/AutoPR.git
cd AutoPR
pip install -e .
  1. Run the API server:

    uvicorn autopr.main:app --reload --port 8000
    
  2. Try the CLI:

    autopr gen --diff "+ added line" --commits "fix: add helper" --issue "#123"
    

API Documentation

Once the server is running, visit http://127.0.0.1:8000/docs for interactive API docs.

Command Cheat Sheet

Command Description
autopr gen Generate PR title and description
autopr review Perform AI-assisted code review
autopr analyze Run static analysis on code diffs
autopr ci-parse Parse CI/test logs
autopr coverage-compare Compare coverage reports
autopr validate-issue Check if changes align with issue

Features

  • FastAPI Backend with /generate and /review endpoints
  • CLI Tool for all operations
  • Static Analysis for Python code
  • CI/Test Validation tools
  • Multiple LLM Providers (OpenAI, Anthropic, Stub)
  • GitHub Actions Integration

Using Real LLM Providers

Set AUTOPR_PROVIDER to openai or anthropic and provide API keys:

export OPENAI_API_KEY="your-key"
export AUTOPR_PROVIDER="openai"

See .env.example for all configuration options.

Demo

Try AutoPR in action with our ready-to-deploy demo repository. See publish-demo/README.md for setup instructions.

License

MIT

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

autopr_core-0.4.1b0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

autopr_core-0.4.1b0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file autopr_core-0.4.1b0.tar.gz.

File metadata

  • Download URL: autopr_core-0.4.1b0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for autopr_core-0.4.1b0.tar.gz
Algorithm Hash digest
SHA256 80b022a85a8f5736f6fceae0d31ae669d9f933e9cbf62a9eaff42e6864603df3
MD5 ff1e8c73ac05cfc7ab0adecbfb9a39f3
BLAKE2b-256 639759d9f0d67913e24c9f07e188dad3d3a4b1477925f33746539420ea49a402

See more details on using hashes here.

File details

Details for the file autopr_core-0.4.1b0-py3-none-any.whl.

File metadata

  • Download URL: autopr_core-0.4.1b0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for autopr_core-0.4.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 442c5b4365adbc068f574833c5d840969d68c03fec51f4ca33e58b6de526d0b1
MD5 2080bf91b7e64b6de16a28a79f0a299e
BLAKE2b-256 521d2ab7806fe2ae89ce680beee6e5cf5ab7471cefde9d9ae46ba377bfa47055

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