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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prpolish-0.2.3.tar.gz
  • Upload date:
  • Size: 15.1 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.3.tar.gz
Algorithm Hash digest
SHA256 c861de8a0af69a77ec3c86c2c8c240e290c4d51128398771a80f26bde19e117b
MD5 9f47df869d81f111c7cf35df8e00a849
BLAKE2b-256 8fb480387c73ade19f1573a8651509c2afcc184d99f311d214bb539a34d1d1fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prpolish-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 490db596d43b5678f95cc37082955c269e4b98cc7027e1b6def54dea5b8e1178
MD5 ab23c1996db3b1bc054655ec1d55e333
BLAKE2b-256 7806c01aaf25019571eaaa38c6b03bba3e7f292064fd497578073e507441fc47

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