Three Ways to Produce a Changelog, Compared

Every package needs a record of what changed between versions. How that record gets written varies a lot: some maintainers write it by hand at release time, some generate it from commit messages, and some ask each pull request to carry a small change file. Each approach shifts effort to a different moment and produces a different kind of text.

The three approaches

1. Hand-written, edited at release. A maintainer keeps an "Unreleased" section in CHANGELOG.md, often following the Keep a Changelog headings, and tidies it before tagging. No tooling beyond a text editor.

2. Generated from commits. Contributors write commit messages in the Conventional Commits format (feat:, fix:, feat!: for breaking changes). A release tool reads the history since the last tag, groups entries and often picks the next version number too.

3. Per-change files. Each pull request adds a small Markdown file describing its user-facing change and the bump level it needs. Changesets is the best-known JavaScript tool for this; towncrier does something similar for Python projects. At release, the files are merged into the changelog and deleted.

Side by side

CriterionHand-writtenFrom commitsChange files
When the writing happensAt release, in one goAt every commitAt every pull request
Reader-friendlinessAs good as the editorReads like a commit log unless messages are disciplinedGood: written for users, reviewed with the code
Contributor burdenNoneMust learn the commit formatMust add a file (bots can remind)
Monorepo supportManual per packageVaries by toolStrong: each file names the packages it affects
Picks the version for youNoYes, from commit typesYes, from declared bump levels
Failure modeForgotten entriesSquash merges with vague titlesMissing or trivial change files

How to read the result

If your package has one or two maintainers and releases a few times a year, the hand-written approach is hard to beat; the cost is an hour per release and the output is the most readable. The risk is memory, so keep the Unreleased section current as you merge rather than reconstructing it later, as covered in how to write a changelog entry.

Commit-driven generation fits projects that already enforce message formats with a linter and release often. Its weak point is that commit messages are written for reviewers, not upgraders. A message like fix: handle edge case becomes a changelog line that helps nobody. The Conventional Commits Q&A goes into making the messages carry enough meaning.

Change files suit monorepos and projects with many outside contributors, because the description is reviewed alongside the diff and the person who made the change writes it. They also make it obvious in review when a pull request claims to be a patch but changes behaviour.

Mixing approaches

These are not exclusive. A common pattern is to generate a draft from commits or change files and then edit it by hand before publishing, keeping breaking changes at the top with migration notes. Whatever produces the draft, a human reading it once before the tag is the step that most improves quality.