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 andBREAKING CHANGEfooters - 📝 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 APIBREAKING 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
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
changelog_ci-0.1.0.tar.gz
(17.0 kB
view details)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b0ad72f425d828b12d297b44df36a41529da2c97dae19f2bac9779b8f22a76
|
|
| MD5 |
5b050569166a0b7554bf9212fdc715da
|
|
| BLAKE2b-256 |
48d0cd91ef34fa129c1f4a626659a2c354c5edf05f7836b7fbb2a7115c6cfc88
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d670480f034115d1f1957df599faa29a395527999d70d5c2c0ed4237ebd88ec
|
|
| MD5 |
71701af7fc1f4c65871d2ad8abb583be
|
|
| BLAKE2b-256 |
0e2d587a21c0f0303bdeede6fcdb2d5f6b672bcbbff05eae83db11d047701fe0
|