Skip to main content

Python package allowing you to manage your CHANGELOG.md files

Project description

(Keep a) Changelog Manager

CLI and Python library for managing CHANGELOG.md files that follow the Keep a Changelog format.

Fork of keepachangelog-manager, originally mostly written by KevinDeJong at TomTom International.

gif

and gui

gui

Install

uv tool install keepachangelog-manager-fork

The package name on PyPI is keepachangelog-manager-fork. The installed command is changelogmanager with legacy alias of keepachangelog-manager.

Supports pre-commit, CLI, and GitHub Actions workflows.

What it does

keepachangelog-manager helps you:

  • create and validate changelogs
  • add, edit, list, and remove [Unreleased] entries
  • infer the next release from change types for SemVer, PEP 440, or CalVer projects
  • release [Unreleased] with an optional confirmation guard
  • seed [Unreleased] from git history using Conventional Commit subjects
  • backfill missing released versions from local git tags
  • export changelogs as JSON or HTML
  • export a bundled CLI skill for Copilot or Claude
  • create or update GitHub and GitLab releases
  • open or update a GitHub pull request for release automation
  • work with multi-component repositories via TOML config files
  • script the CLI with --dry-run, --quiet, --json, --info, and --verbose
  • use an optional Tkinter GUI for editing, backfill, release, and batch workflows

Commands

Commands are grouped below by what they do.

File editing

Commands that read and rewrite your CHANGELOG.md.

create        Create a new (empty) CHANGELOG.md
add           Add an entry to [Unreleased]
edit          Edit an existing [Unreleased] entry
remove        Remove an [Unreleased] entry (or --list them)
from-commits  Seed [Unreleased] from git commit history
backfill      Backfill missing released versions from local git tags

Machine readability

Commands and global flags for scripting and exporting structured data.

version       Print previous/current/future version
to-json       Export the changelog as JSON
to-html       Export the changelog as HTML
skill export  Export the bundled CLI skill for Copilot or Claude

--json        Emit a single machine-readable JSON object on stdout
--quiet       Suppress human-friendly output
--info        Runtime logging on stderr
--verbose     Verbose runtime logging on stderr (implies --info)

Repo release tools

Commands that cut a release and publish it to a forge.

release         Release [Unreleased] into a versioned section
github-release  Create/update a GitHub release from the changelog
github-pr       Open/update a GitHub pull request for a changelog branch
gitlab-release  Create/update a GitLab release from the changelog

Validation & setup

validate      Validate the CHANGELOG.md (use --fix to autofix)
config        Show or initialize configuration (config init)
gui           Launch the optional Tkinter GUI

Quick examples

Add an entry:

changelogmanager add --change-type added --message "Document the new release flow"

Edit or remove an existing [Unreleased] entry:

changelogmanager remove --list
changelogmanager edit --change-type added --index 0 --message "Document the guarded release flow"
changelogmanager remove --change-type added --index 0

Seed [Unreleased] from commit history:

changelogmanager from-commits

Backfill an existing repo from local git history:

changelogmanager backfill --source all --dry-run
changelogmanager backfill --source all

Validate and autofix common issues:

changelogmanager validate --fix

Release non-interactively:

changelogmanager release --yes

Publish a forge release from [Unreleased]:

changelogmanager github-release --repository owner/name
changelogmanager gitlab-release --project group/name

GitLab note: the default CI_JOB_TOKEN usually cannot create releases — use a project/group/personal access token via GITLAB_TOKEN. See docs/gitlab.md.

Export structured output:

changelogmanager to-json
changelogmanager to-html

Export the bundled CLI skill:

changelogmanager skill export

Machine-readable mode for scripts:

changelogmanager --json version --reference future
changelogmanager --quiet validate
changelogmanager --info validate
changelogmanager --verbose from-commits --dry-run

--info and --verbose enable stdlib runtime logging on stderr for diagnostics. --verbose is the more detailed level and implies --info. Existing validation diagnostics still use the configured LLVM or GitHub Actions annotation format.

Configuration

Use --config and --component for multi-component repositories:

[versioning]
scheme = "semver"

[validation]
enforce_preamble = false

[[components]]
name = "Service"
changelog = "service/CHANGELOG.md"
match = ["service/**"]

[[components]]
name = "Client"
changelog = "client/CHANGELOG.md"
match = ["client/**"]
changelogmanager --config changelogmanager.toml --component Service validate
changelogmanager config
changelogmanager config init
changelogmanager skill export

If --config is omitted, the CLI auto-detects changelogmanager.toml, .changelogmanager.toml, or [tool.changelogmanager] in pyproject.toml from the current directory.

changelogmanager config init is the quickest way to bootstrap config. It defaults to pyproject.toml and semver, then prompts for preamble enforcement and the default component/changelog path. Re-running it updates the active config instead of starting from scratch.

Optional desktop GUI

changelogmanager gui

The GUI now includes four screens: a live [Unreleased] editor, an initialize/backfill screen, a release publishing screen for GitHub/GitLab, and a components screen for batch validation and from-commits --all.

Credits

Vendored keepachangelog

Documentation

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

keepachangelog_manager_fork-6.0.0.tar.gz (936.3 kB view details)

Uploaded Source

Built Distribution

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

keepachangelog_manager_fork-6.0.0-py3-none-any.whl (113.3 kB view details)

Uploaded Python 3

File details

Details for the file keepachangelog_manager_fork-6.0.0.tar.gz.

File metadata

File hashes

Hashes for keepachangelog_manager_fork-6.0.0.tar.gz
Algorithm Hash digest
SHA256 12d355a5010ab578f6a1dadbbd7006411b9bc8972232d52416c2d85f7a7aab53
MD5 ca05b0fd15defceb2469f133874b2c6e
BLAKE2b-256 655fcfd525557ef8b46433349ac7f4b2173ff4a19951bf2610c9ae6d3b5e0653

See more details on using hashes here.

Provenance

The following attestation bundles were made for keepachangelog_manager_fork-6.0.0.tar.gz:

Publisher: release.yml on matthewdeanmartin/keepachangelog-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file keepachangelog_manager_fork-6.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for keepachangelog_manager_fork-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d100481e301ab665fe4101c025c20760398ab952dc1cb28f558ea235703f099d
MD5 42c59a1a740b9bc3f842b089b5b31b27
BLAKE2b-256 6cb3c5404a26af8cba19e14b9edb003c567b8f58724a8d1254baae7d530834c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for keepachangelog_manager_fork-6.0.0-py3-none-any.whl:

Publisher: release.yml on matthewdeanmartin/keepachangelog-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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