Skip to content

BenihDev/gitprgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitprgen

AI-powered PR description generator. Generates clear, structured pull request descriptions from your git diffs.

Install

npx gitprgen

Or install globally:

npm install -g gitprgen

Usage

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

Configuration

Create ~/.gitprgen.json to set defaults:

{
  "provider": "anthropic",
  "model": "claude-sonnet-4-20250514"
}

Environment Variables

  • ANTHROPIC_API_KEY — Required when using Anthropic provider
  • OPENAI_API_KEY — Required when using OpenAI provider

How it works

  1. Reads the diff between your current branch and the base branch (main by default)
  2. Collects commit messages and changed files summary
  3. Sends everything to an LLM
  4. Outputs a structured PR description (summary, changes, testing)

License

MIT

About

AI-powered PR description generator from git diffs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors