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
| Criterion | Hand-written | From commits | Change files |
|---|---|---|---|
| When the writing happens | At release, in one go | At every commit | At every pull request |
| Reader-friendliness | As good as the editor | Reads like a commit log unless messages are disciplined | Good: written for users, reviewed with the code |
| Contributor burden | None | Must learn the commit format | Must add a file (bots can remind) |
| Monorepo support | Manual per package | Varies by tool | Strong: each file names the packages it affects |
| Picks the version for you | No | Yes, from commit types | Yes, from declared bump levels |
| Failure mode | Forgotten entries | Squash merges with vague titles | Missing 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.