A CLI tool to generate PR titles and descriptions for Git repositories
Project description
prpolish: AI-Powered PR Helper
Supercharge your pull requests with AI-generated titles, descriptions, and quality checks!
Make every PR shine ✨
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
- Get your OpenAI API key from OpenAI
- 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
Made by @yashg4509
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prpolish-0.2.1.tar.gz.
File metadata
- Download URL: prpolish-0.2.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92210d22488853dbd9d3286b6f55ad089d31870710fd6c2fe89268ec584e8637
|
|
| MD5 |
bbfc44ec65266dd8e98a6f3d61c5a421
|
|
| BLAKE2b-256 |
3f5a6f47569b5f8fc9b571ba16437b3c274fa9d8a315b1f6824435492763baea
|
File details
Details for the file prpolish-0.2.1-py3-none-any.whl.
File metadata
- Download URL: prpolish-0.2.1-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.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b7e815c5a7ce14eabefa14e6e48607d243c1274b0f923622d24fbae082b0e0b
|
|
| MD5 |
2a04a4d3d70be80ca2a5a9b74c7f21c7
|
|
| BLAKE2b-256 |
20eaade19873c4c4b35e6f685b584b7fd55fb262d9b936c405cc782fefe71e5f
|