Skip to main content

A CLI tool to generate PR titles and descriptions for Git repositories

Project description

AI PR Helper

prpolish: AI-Powered PR Helper

Supercharge your pull requests with AI-generated titles, descriptions, and quality checks!
Make every PR shine ✨

PyPI version License


COMING SOON
Above: Example of prpolish generating a beautiful PR description and running vibe checks


Features

  • PR Title & Description Generator: AI-powered, context-aware, and customizable.
  • Vibe Check Warnings: Flags low-quality commits, missing tests, and more.
  • CLI Interface: Simple, interactive, and scriptable.
  • Custom Templates: Use your own PR templates (string or file).
  • LLM-Powered: Uses OpenAI GPT for best results, with fallback heuristics.
  • Failsafe Defaults: Always allows user editing and review.

Quickstart

# 1. Install dependencies
pip install -r requirements.txt

# 2. (Optional) Install GitHub CLI for auto PR creation
# https://cli.github.com/

# 3. Run the CLI from your repo root
python -m prpolish.cli generate

Commands

# Generate PR title and description
prpolish generate [--template <str|path>] [--save, -s title|description|both] [--fast, -f]

# Generate only the PR title
prpolish generate-title [--template <str|path>] [--save, -s]

# Generate only the PR description
prpolish generate-desc [--template <str|path>] [--save, -s]

LLM-Powered PR Descriptions

  1. Get your OpenAI API key from OpenAI
  2. Set it in your environment:
export OPENAI_API_KEY=sk-...

If no API key is set, the tool falls back to a heuristic generator.


Custom PR Templates

You can provide your own template for the PR description using the --template flag. This can be either a string or a path to a file containing your template.

If you already have a pull_request_template.md, it will automatically detect it and use it.


License

License

Made by @yashg4509

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

prpolish-0.2.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

prpolish-0.2.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file prpolish-0.2.2.tar.gz.

File metadata

  • Download URL: prpolish-0.2.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for prpolish-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f90feca6207a288128be395ef0c49482b63c90d856da842a8fc31e0f0ed4a93c
MD5 d6702146b6b0faea356f97970719a971
BLAKE2b-256 50457a11405e72196f11bebdae8329fb578b66f20bdbbfe5260712aa371c4ccc

See more details on using hashes here.

File details

Details for the file prpolish-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: prpolish-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for prpolish-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19946dd428b52b5a288619bcce7be8d23bddccdfed5cddf511c1a153d4a94bd9
MD5 d8e2ab3c6b2fbb7d075ff807772d6944
BLAKE2b-256 d16989c20c66ac55c3c7a8f32c26ff67252ac5fec354d2d8e21cc0254992520e

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