Pr Description Generator

v1.0.1

Auto-generate pull request descriptions from git diffs and commit history. Parses conventional commits, categorizes changes (features, fixes, refactoring), a...

0· 136· 2 versions· 1 current· 1 all-time· Updated 4h ago· MIT-0

Install

openclaw skills install pr-description-generator

PR Description Generator

Auto-generate structured PR descriptions from git diffs and commit history. Pure Python + git CLI.

Quick Start

# Standard description (current branch vs main)
python3 scripts/generate_pr_description.py

# Compare against specific base branch
python3 scripts/generate_pr_description.py --base develop

# Minimal template (just bullet points)
python3 scripts/generate_pr_description.py --template minimal

# Detailed template (file breakdown + reviewer hints)
python3 scripts/generate_pr_description.py --template detailed

# JSON output (for automation)
python3 scripts/generate_pr_description.py --format json

# Different repo path
python3 scripts/generate_pr_description.py --repo /path/to/repo

# Save to file
python3 scripts/generate_pr_description.py --output pr-body.md

# Copy to clipboard
python3 scripts/generate_pr_description.py --copy

Features

  • Conventional commit parsing — groups commits by type (feat, fix, refactor, etc.)
  • Impact analysis — rates changes as high/medium/low based on files, size, and risk
  • File categorization — groups by code, tests, docs, infra, deps, config, database, styles
  • Reviewer hints — warns about missing tests, DB migrations, infra changes, deletions
  • Auto test plan — generates relevant test checklist based on changed file types
  • Auto base detection — detects main vs master branch

Templates

TemplateUse Case
minimalQuick summary, internal PRs
standardDefault, most PRs
detailedLarge PRs, cross-team reviews

Conventional Commits

Best results when commits follow conventional format:

feat(auth): add OAuth2 login
fix(api): handle null response from payment gateway
refactor: extract validation into shared utility
docs: update API reference for v2 endpoints

Non-conventional commits are grouped under "Other Changes".

Version tags

latestvk977pa13q9psg6byx4acs16kr985x51j