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:

    pr-ai 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
pr-ai gen Generate PR title and description
pr-ai review Perform AI-assisted code review
pr-ai analyze Run static analysis on code diffs
pr-ai ci-parse Parse CI/test logs
pr-ai coverage-compare Compare coverage reports
pr-ai 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.0b0.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.0b0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autopr_core-0.4.0b0.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.0b0.tar.gz
Algorithm Hash digest
SHA256 7690e07fa071796e23ed22b3c32d8de814be4c839a4ab902dea452a1612240de
MD5 82e4e5007e0d7a8adfc05831fd3ac7b7
BLAKE2b-256 4cf5befec8ea826467940f1a0faa8c2003e00217f02c6959a9cd197e502c437a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autopr_core-0.4.0b0-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.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad9d3e99e156cbb18a67b28d5a8eabcfb22f3e0580600b3e64a034a59bc2605d
MD5 386104bad7f2a1b49a280499c6bdd0f2
BLAKE2b-256 5a9616c08284403fbf30db52c950156232b7544a34c652f51c42a2bcfb71fa5a

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