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.

Installation

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

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

Usage

# 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]

Flags

-save, -s: allows you to save either the title, description, or both (default) to a draft file
--fast, -f: automatically creates the PR and commits it


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.4.tar.gz (15.2 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.4-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for prpolish-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0e0a4825eebe4ece45452083b34890e685a35cb5aa49dbb1c812ee7743d88139
MD5 ea4799d052f9b14ebd1a23957980910a
BLAKE2b-256 211860e8ee240d5a0f524755c73d4003bc94a7f4212d47f890cb35faffbd26b8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for prpolish-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1cfb8e63c3b15e08b32d035fb776bc6fd02e52720027b361680943e7809129a7
MD5 70a6a1c8dfbc15375a08d0f0ff0093a3
BLAKE2b-256 7542e2c2e0aabc273468c2b1b11ddabffc363720409122da6bc15800ca79848e

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