relnote docs · Compare · CHANGELOG.md · conventional-changelog alternative · Python package · GitHub Action · Single-file zipapp

A commitizen alternative for release notes without cz bump

Commitizen (PyPI package commitizen 4.20.1, docs) is the Python cz command from commitizen-tools. The introduction describes an interactive commit prompt, a version bump, a Keep a Changelog file, and commit-message checks. Config lives in .cz.toml or in pyproject.toml under [tool.commitizen]. If the commits are already conventional and you want a Release body, the next tag, and one new CHANGELOG.md section, relnote reads the local git log and does not run cz. It does not replace the prompt, the linter, version_files, pre-releases, or custom rules. Those stay with commitizen, and the section below says when to keep the whole tool.

This page is not the Node tooling. commitizen/cz-cli and the conventional-changelog presets are the conventional-changelog alternative. Those CLIs prompt and write a changelog. They do not bump or tag. cz bump and cz changelog on this page are the Python project.

commitizen, or this?

Facts in this table are from the Commitizen introduction, the bump command, the changelog command, the check command, and the configuration file page. The introduction's requirements are Python 3.10+ and Git 1.8.5.2+. PyPI commitizen 4.20.1 requires Python 3.10 or newer and older than 4. The recommended install lines there are pipx install commitizen and uv tool install commitizen. The same page also lists brew install commitizen, pip install -U commitizen, conda, Poetry, and PDM.

commitizen-tools/commitizenrelnote
Commit messagecz commit (alias cz c) is an interactive prompt. cz commit -- --signoff passes --signoff through to git. cz init creates the configNo prompt and no commit of your change. A subject such as feat: add --json output (#12) is already the note. examples/release.sh commits only chore(release): vX.Y.Z
Lintcz check validates one message (--message, stdin, or --commit-msg-file) or a range (--rev-range, or --use-default-range). The introduction documents pre-commit hooks commitizen (commit-msg) and commitizen-branch (pre-push)No message check and no --check flag. An empty commit range exits 1. The step still succeeds in the GitHub Action unless fail-on-empty is set. The pre-commit guide previews notes
What it writescz changelog (alias cz ch) writes a Markdown changelog. The documented skeleton is # <version> (<date>), then ## <change_type>, then a bullet. Without --incremental the command generates the full changelog from tags. --incremental builds from the latest version already in the file so a hand edit is not rewritten. cz bump updates the changelog only with --changelog or update_changelog_on_bumpA GitHub Release body on stdout, or --output. --changelog CHANGELOG.md inserts one ## [TITLE] - DATE section before the first ## heading and does not commit. Older text stays. A second run with the same title is refused. There is no full rebuild and no template
Where the text comes fromCommits that match the active rules, grouped by the change type the rule parsed. The changelog page says the message is the field the regex must parse. The date on a version block is the date of the tagCommit subjects since the previous tag. feat → Features, fix → Fixes, type! or a BREAKING CHANGE: footer → Breaking, anything else → Other. A docs:, refactor:, or perf: commit is Other. Merge commits are omitted unless you pass --include-merges
Next versionThe bump page's table: BREAKING CHANGE or a bang such as feat! → MAJOR, feat → MINOR, fix, perf, and refactor → PATCH. The writing-commits page says types such as build, chore, and docs typically do not bump the version unless they include a BREAKING CHANGE. cz bump --get-next prints the next version and raises NoneIncrementExit (exit code 21) when nothing in the range is eligible. --major-version-zero keeps a breaking change on 0.x from moving the major; the configuration example leaves major_version_zero falserelnote --next-version prints the next tag and does not create it: breaking → major, feat → minor, anything else → patch, including docs and chore. While the major is 0, a breaking change bumps the minor, with no flag. No previous tag → v0.1.0. An empty range exits 1. There is no NoneIncrement exit for a docs-only range
Version filesversion_files lists files or globs, optionally file:pattern. The bump configuration page says the config file's own version is updated on bump whether or not that file is in the list. --check-consistency checks the listed files against the configured version. --version-files-only bumps those files and skips the commit and the tagThe CLI does not edit a version file. examples/release.sh --bump-file FILE (repeatable) sets the first "version" or version = line in that file. No globs, no per-file pattern, and a second version line in the same file is left as it is. A missing version line fails the script
Tag and commitcz bump creates a commit and a tag. The bump page says tags are lightweight unless you pass --annotated-tag or set annotated_tag. The default tag_format is $version (a v prefix is a format you set, such as v$version). --gpg-sign signs the tag. Nothing in the bump page pushes--next-version only prints. release.sh commits chore(release): vX.Y.Z and creates an annotated tag. It does not sign the tag and it does not push. The tag keeps the v from the previous tag (or adds one)
Pre-releasescz bump --prerelease takes alpha, beta, or rc. The default version_scheme is pep440 (1.0.0a0). semver uses 1.0.0-a0. --increment-mode is linear by default, or exact. The changelog flag --merge-prerelease folds pre-release commits into the next stable entryNo pre-release bump. --next-version drops a -rc or +build suffix on the previous tag and prints the next stable tag. release.sh --release-as v1.4.0-rc.1 uses the tag you typed. It does not increment an alpha, beta, or rc counter
Rules and templatesThe default name is cz_conventional_commits. The customization page uses name = "cz_customize" (or -n cz_customize) with bump_pattern and bump_map, and plugins installed with pip. cz changelog --template and cz bump --template take a Jinja template. That page warns that cz_customize may be removed or renamedFixed headings: Features, Fixes, Breaking, Other. No rule file, no plugin, no Jinja template
ConfigSearch order: .cz.toml, cz.toml, .cz.json, cz.json, .cz.yaml, cz.yaml, then pyproject.toml under [tool.commitizen]. The first valid file wins. cz --config PATH loads that file onlyNone. relnote does not read .cz.toml or [tool.commitizen]
GitHub ReleaseThe bump page's --changelog-to-stdout sends the new changelog block to stdout so you can create a Release from it (cz bump --changelog --changelog-to-stdout > body.md). The command does not create the ReleaseThe CLI does not create the Release. Stdout is the Release body. The Action guide publishes it with gh or softprops/action-gh-release
RuntimeA Python package with dependencies (the introduction recommends pipx or uv so the install stays isolated). Python 3.10+ and Git 1.8.5.2+Python 3.11+ and git on PATH. No third-party packages. The notes come from local git

When to keep commitizen

Keep commitizen when you want the interactive cz commit prompt, when cz check (or the commitizen pre-commit hook) should reject a message that breaks the rules, when version_files should update several files by glob or by a file:pattern substring, when you cut alpha, beta, or rc versions, or when the bump and changelog rules are customized (cz_customize, a pip plugin, or a Jinja template). relnote does none of those.

You can keep cz commit and cz check and still use relnote for the notes. The prompt and the linter produce the conventional subjects. relnote reads those subjects. It does not need .cz.toml to do that, and it will not update the version key commitizen stores in that file unless you pass the file to --bump-file, which changes only the first version line.

relnote fits when the subjects are already conventional, including a squash-merged title such as feat: … (#12), and you want the Release body plus one changelog section without a config file. A docs-only or chore-only range is a patch tag here, and the lines show up under Other. Commitizen's bump table does not list those types, and --get-next exits 21 when nothing is eligible. The CI form is one step, loki-inu/relnote@v0.3.8 after actions/checkout with fetch-depth: 0, or python3 -m relnote --output notes.md --quiet wherever Python 3.11+ and git are already installed.

Install

What you are leaving, from the introduction and the command pages:

pipx install commitizen
cz commit
cz bump
cz changelog
cz check --rev-range main..HEAD

Python 3.11+ and git on PATH. The download is the v0.3.8 zipapp from the GitHub Release, the same pin as the single-file install. From a checkout, python3 -m relnote is the same CLI. pip install git+https://github.com/loki-inu/relnote.git is the other install on the offline release notes page. relnote does not read .cz.toml or [tool.commitizen].

mkdir -p ~/.local/bin
curl -fsSL -o ~/.local/bin/relnote https://github.com/loki-inu/relnote/releases/download/v0.3.8/relnote
chmod +x ~/.local/bin/relnote

Release body, next version, CHANGELOG section

Three separate invocations, the same flags as the offline guide, the next version guide, and the CHANGELOG.md guide. Nothing is pushed, and no commitizen config is read. --since REF starts somewhere other than the latest tag. This is the stand-in for cz bump --get-next, for the Release body, and for cz changelog when you only want the new section.

python3 -m relnote --next-version
python3 -m relnote --output notes.md --quiet
python3 -m relnote --changelog CHANGELOG.md --changelog-title v1.4.0 --quiet

--next-version prints one line, such as v1.4.0. It does not write version_files and it does not tag. --output notes.md --quiet writes the Release body and prints nothing. --changelog prepends one Markdown section. With --changelog-title v1.4.0 on an untagged HEAD, that section's compare link ends at v1.4.0 (v0.3.6+). Without --changelog-title, an untagged HEAD is titled Unreleased. The command does not commit the file. The section date is --date YYYY-MM-DD (default: today, UTC), not the date of an existing tag.

What those commands write

Start: the last tag is v1.3.2, then feat: add --json output (#12) and fix: handle empty config (#13). --next-version prints v1.4.0 (a feat is a minor bump, which matches commitizen's MINOR row for feat). notes.md is the Release body. Because HEAD is not tagged yet, the range ends at HEAD:

## What's changed

### Features

- add --json output (#12) (`4a5b395`) — Ada Lovelace

### Fixes

- handle empty config (#13) (`7e08d2c`) — Ada Lovelace

---

Range: `v1.3.2` → `HEAD`.

**Full changelog:** https://github.com/you/project/compare/v1.3.2...HEAD

CHANGELOG.md gains this section above the previous entries. (#12) becomes a pull request link when origin is a github.com remote (v0.3.5+). The heading is ## [v1.4.0] - DATE, not commitizen's # <version> (<date>) block, and older sections are not regenerated:

## [v1.4.0] - 2026-11-20

### Features

- add --json output ([#12](https://github.com/you/project/pull/12)) (`4a5b395`) — Ada Lovelace

### Fixes

- handle empty config ([#13](https://github.com/you/project/pull/13)) (`7e08d2c`) — Ada Lovelace

**Full changelog:** https://github.com/you/project/compare/v1.3.2...v1.4.0

Both blocks come from running those three commands against a scratch repository in relnote's test suite (tests/test_commitizen_docs.py). Your hashes and the date differ. A squash-merged pull request whose title is already feat: … (#12) is one commit, so it shows up as one line. Details: squash-merged PR titles.

cz bump, including the version file

cz bump picks the version, updates version_files and the version in the commitizen config, and by default creates a commit and a tag. The changelog is included when update_changelog_on_bump is set or you pass --changelog. examples/release.sh is the local stand-in for that release step: next tag from relnote --next-version, one changelog section, an optional version-file edit, a chore(release) commit, and an annotated tag. --dry-run prints the plan and writes nothing. Nothing in the script is pushed. It does not read version_files.

curl -fsSL -o release.sh https://raw.githubusercontent.com/loki-inu/relnote/v0.3.8/examples/release.sh
chmod +x release.sh
./release.sh --dry-run --bump-file pyproject.toml
./release.sh --bump-file pyproject.toml

That URL is examples/release.sh on the v0.3.8 tag. The v0.3.8 release assets are relnote, relnote.pyz, and SHA256SUMS, so the script is not a release asset. It calls relnote on PATH. Pass --bump-file again for another file, such as src/__version__.py, when that file's first version line is the one you want changed. A pattern such as packages/*/pyproject.toml:version has no equivalent. Guide for a Python package that also publishes: Python package releases.

Draft a Release when the tag is pushed

This is the tag-push workflow from the GitHub Action guide and from examples/draft-release.yml. Copy it to .github/workflows/draft-release.yml. Push a tag such as v1.4.0 and a draft Release appears with the notes since the previous tag. You review it and press Publish. There is no cz bump step. The Release body is the relnote stdout, not cz bump --changelog-to-stdout.

name: Draft release

on:
  push:
    tags:
      - "v*"

jobs:
  draft:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - id: relnote
        uses: loki-inu/relnote@v0.3.8
      - uses: softprops/action-gh-release@v2
        with:
          draft: true
          name: ${{ github.ref_name }}
          body: ${{ steps.relnote.outputs.notes }}

fetch-depth: 0 is required so the checkout has tags. contents: write is for the release step. The relnote step only reads the checkout. On a tag push, HEAD is the new tag, so the range and the compare link end at that tag (v0.3.4+), not at HEAD.

No third-party release action? The guide's GitHub CLI step passes the notes through the environment, not inline in the script (commit subjects contain backticks):

      - run: gh release create "$GITHUB_REF_NAME" --draft --title "$GITHUB_REF_NAME" --notes "$NOTES"
        env:
          GH_TOKEN: ${{ github.token }}
          NOTES: ${{ steps.relnote.outputs.notes }}

Or create the Release from a button

This is the workflow_dispatch job from the same guide. next-version is the tag. has-changes is false when there is nothing new, and the step still succeeds, so the gh step is gated on it. gh release create makes the tag at --target.

name: Release
on:
  workflow_dispatch:
permissions:
  contents: write
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - id: relnote
        uses: loki-inu/relnote@v0.3.8
      - if: steps.relnote.outputs.has-changes == 'true'
        run: gh release create "$TAG" --target "$GITHUB_SHA" --title "$TAG" --notes "$NOTES"
        env:
          GH_TOKEN: ${{ github.token }}
          TAG: ${{ steps.relnote.outputs.next-version }}
          NOTES: ${{ steps.relnote.outputs.notes }}
      - if: steps.relnote.outputs.has-changes != 'true'
        run: echo "Nothing to release since the last tag."

Set fail-on-empty: true if an empty range should fail the step. An unknown since ref still fails. Inputs and outputs: the Action guide.

Map the commands

commitizenrelnote
pipx install commitizen (or uv, brew, or pip)The v0.3.8 zipapp above, or python3 -m relnote from a checkout
cz commit / cz cNo equivalent. Write the conventional subject yourself, or keep cz commit for the prompt
cz check --rev-range main..HEADNo equivalent. relnote does not lint commit messages
cz bumprelnote --next-version prints the tag. examples/release.sh --bump-file pyproject.toml applies it: first version line, CHANGELOG.md, chore(release) commit, annotated tag. It does not read version_files
cz bump --get-nextpython3 -m relnote --next-version. The increment rules differ for docs, chore, and other types that are not feat, fix, perf, refactor, or breaking. See the table above
cz bump --changelog or update_changelog_on_bumprelease.sh always prepends the changelog section. On its own: python3 -m relnote --changelog CHANGELOG.md --changelog-title v1.4.0
cz changelog / cz chpython3 -m relnote --changelog CHANGELOG.md. One new section. Older sections stay. The file is not rebuilt from every tag
cz changelog --incrementalNo separate flag. --changelog is already a prepend. A duplicate title is refused instead of rewritten
cz changelog --file-name CHANGES.md--changelog CHANGES.md. Markdown section only. relnote does not take a Jinja --template
cz bump --changelog --changelog-to-stdout > body.mdpython3 -m relnote --output notes.md --quiet writes the Release body. Publish with the workflows above. Neither command creates the GitHub Release by itself
cz bump --prerelease betaNot supported. release.sh --release-as v1.4.0-rc.1 uses that exact tag and does not compute the next pre-release
version_files and --version-files-only--bump-file FILE, first version line only, and only when you run release.sh without --dry-run. The relnote CLI itself does not edit the file
--annotated-tag (default is a lightweight tag)release.sh always creates an annotated tag. There is no lightweight-tag switch
--tag-format '$version' (the documented default)--tag-prefix PREFIX limits which tags count. The printed tag keeps a leading v from the previous tag. Guide: monorepo
.cz.toml or [tool.commitizen] in pyproject.tomlNo config file. relnote does not read either one. --path DIR limits commits to a directory

FAQ

When should I keep commitizen?

Keep commitizen when you want the interactive cz commit prompt, cz check to lint commit messages, version_files with patterns or globs, pre-releases (alpha, beta, or rc), or customizable rules and changelog templates. relnote does not prompt, does not lint messages, does not read version_files, and does not compute a pre-release bump.

Does relnote run cz commit or cz check?

No. relnote reads commit subjects that are already conventional. It does not ask for a type, scope, or subject, and it does not validate a message or a revision range. Keep cz commit and cz check if you still want those.

Does relnote read .cz.toml or pyproject.toml?

No. Commitizen searches .cz.toml, then cz.toml, .cz.json, cz.json, .cz.yaml, cz.yaml, and then pyproject.toml under [tool.commitizen]. The first valid file wins. relnote has no config file and does not read any of those. --changelog-title names the section you pass. --next-version prints the next tag from the commits. examples/release.sh --bump-file sets the first version line in a file you name.

How is this different from the conventional-changelog page?

The conventional-changelog page is the Node stack: conventional-changelog presets and cz-cli prompts. Those CLIs do not bump or tag. This page is commitizen-tools/commitizen, the Python cz command, which does cz bump and cz changelog. relnote still does not prompt or lint.

Should I pin versions?

Yes. Pin the curl URL and the loki-inu/relnote action to the same tag (this page uses v0.3.8). The commitizen facts here are from the official Commitizen documentation (introduction, bump, changelog, check, and configuration file). The current package on PyPI is commitizen 4.20.1, which requires Python 3.10 or newer and older than 4. Floating latest on the relnote zipapp can change behaviour under you.