Skip to main content

Auto-generate CHANGELOG.md from merged PRs and git history

Project description

changelog-ci

Auto-generate CHANGELOG.md from merged PRs and git history.

Features

  • 🚀 Automatic changelog generation from git commits and GitHub PRs
  • 📋 Conventional commit parsing (feat, fix, docs, perf, chore, etc.)
  • 🏷️ Breaking change detection from ! suffix and BREAKING CHANGE footers
  • 📝 Keep-a-Changelog format with markdown and JSON output
  • 🔧 Configurable via .changelog-ci.yaml
  • 🏃 Dry-run mode for preview
  • 🏷️ Release management — generate, commit, and tag in one command
  • 👥 Contributor listing
  • 🌐 GitHub API integration for merged PRs
  • 📦 Local mode — works without API access

Install

pip install changelog-ci

Usage

# Generate from local git history
changelog-ci generate

# Since a specific tag
changelog-ci generate --since v2.1.0

# Preview without writing
changelog-ci generate --dry-run

# JSON output
changelog-ci generate --format json

# From GitHub PRs
changelog-ci generate --owner myorg --repo-name myrepo

# Create initial CHANGELOG.md
changelog-ci init

# Validate changelog is up to date
changelog-ci validate

# Create a release (generate + commit + tag)
changelog-ci release 2.2.0

# List contributors
changelog-ci contributors

Configuration

Create .changelog-ci.yaml in your repo root:

categories:
  - name: Features
    labels: [enhancement, feature]
    prefixes: [feat]
  - name: Bug Fixes
    labels: [bug, bugfix]
    prefixes: [fix]
header: "# Changelog"
template: keepachangelog
unreleased: true
tag_prefix: "v"
ignore_labels: [skip-changelog, dependencies]
contributors: true

Conventional Commits

changelog-ci understands conventional commit format:

feat: add login page
fix(auth): resolve token expiry (#42)
feat(api)!: change response format
docs: update API reference
perf(db): optimize query performance

Breaking changes are detected from:

  • ! after the type/scope: feat!: redesign API
  • BREAKING CHANGE: footer in commit body

Output Format

# Changelog

## [2.2.0] - 2026-04-07

### Features
- Add pagination support (#142) — @johndoe

### Bug Fixes
- Fix race condition in file writes (#145) — @janedoe

### ⚠️ Breaking Changes
- Rename User.getClient() to User.getActiveClient() (#143)

Development

pip install -e ".[dev]"
pytest

License

MIT © Hiren Thakore

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

changelog_ci-0.1.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

changelog_ci-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file changelog_ci-0.1.0.tar.gz.

File metadata

  • Download URL: changelog_ci-0.1.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for changelog_ci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53b0ad72f425d828b12d297b44df36a41529da2c97dae19f2bac9779b8f22a76
MD5 5b050569166a0b7554bf9212fdc715da
BLAKE2b-256 48d0cd91ef34fa129c1f4a626659a2c354c5edf05f7836b7fbb2a7115c6cfc88

See more details on using hashes here.

File details

Details for the file changelog_ci-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: changelog_ci-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for changelog_ci-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d670480f034115d1f1957df599faa29a395527999d70d5c2c0ed4237ebd88ec
MD5 71701af7fc1f4c65871d2ad8abb583be
BLAKE2b-256 0e2d587a21c0f0303bdeede6fcdb2d5f6b672bcbbff05eae83db11d047701fe0

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