gitprgen
v1.0.1
Published
AI-powered PR description generator from git diffs
Downloads
219
Maintainers
Readme
gitprgen
AI-powered PR description generator. Generates clear, structured pull request descriptions from your git diffs.
Install
npx gitprgenOr install globally:
npm install -g gitprgenUsage
# Generate PR description for current branch vs main
gitprgen
# Specify base branch
gitprgen --base develop
# Use custom template
gitprgen --template ./pr-template.md
# Specify LLM provider and model
gitprgen -p anthropic -m claude-sonnet-4-20250514Configuration
Create ~/.gitprgen.json to set defaults:
{
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
}Environment Variables
ANTHROPIC_API_KEY— Required when using Anthropic providerOPENAI_API_KEY— Required when using OpenAI provider
How it works
- Reads the diff between your current branch and the base branch (main by default)
- Collects commit messages and changed files summary
- Sends everything to an LLM
- Outputs a structured PR description (summary, changes, testing)
License
MIT
