To write a changelog, list each version newest first with its date, group the entries under headings such as Added, Changed and Fixed, and write each entry for the person deciding whether to upgrade. An entry passes when that reader can tell what will change for them. A pasted commit log fails, because commits record what the developer did.
A changelog is written for the person deciding whether to upgrade
A changelog is opened by somebody who runs one version of a project and is looking at a newer one. They have the old version pinned in a manifest or installed on a server, and they bring one question. What happens to my code, my configuration or my data if I move?
Two published conventions for the file both start from that reader. Keep a Changelog 1.1.0 defines a changelog as “a file which contains a curated, chronologically ordered list of notable changes for each version of a project”, and its first guiding principle is “Changelogs are for humans, not machines.” Common Changelog, which calls itself “a stricter subset of Keep a Changelog”, says of the people who consume software that “They must be able to quickly understand the impact of a release.”
That gives every entry a test. Could a reader who has never seen the repository tell from this line whether anything changes for them? An entry that fails sends them to the diff, and reading the diff is the work the changelog was meant to save.
Release notes are a different document, written once per release for the people who use the product. Release notes examples shows one change written for each of those readers, and the release notes template gives the structure. A changelog is cumulative. It stays in the repository, covers every version and is read by the developer or integrator who carries out the upgrade. A hosted product with no version for anyone to choose has no such reader, and release notes serve its users.
Every example below belongs to an invented CSV parsing library.
The layout lets a reader start at their own version and read upwards
Somebody on 3.1.0 who is considering 4.0.0 needs everything released between the two, and the layout exists to hand them that span. Keep a Changelog’s guiding principles include “The latest version comes first”, “There should be an entry for every single version” and “The release date of each version is displayed.” It recommends dates written like 2017-07-17, largest unit first, because that form “doesn’t overlap in ambiguous ways with other date formats”. Common Changelog makes the same form a rule.
The two conventions part over what sits above the newest version. Keep a Changelog says to “Keep an Unreleased section at the top to track upcoming changes”, so readers see what is coming and the maintainer moves those entries under a version heading at release time. Common Changelog has no such section, and gives as one reason that “Writing a changelog requires a bird’s-eye view of the project, while individual changes are typically best reviewed and discussed in isolation.” Both can be had. Entries collect under Unreleased while the person who made each change still remembers it, and the section is edited as one piece before it is renamed to a version.
The skeleton below follows Keep a Changelog, down to the file name CHANGELOG.md and the opening lines of that project’s own changelog.
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Entries collect here, under the same six headings, until the release is cut.
## [1.1.0] - 2026-10-21
### Added
- What a user of the project can do now and could not do before.
### Changed
- What behaves differently, and what to do about it.
### Deprecated
- What still works and will be removed, with its replacement.
### Removed
- What is gone, and what to use in its place.
### Fixed
- The fault as somebody using the project saw it.
### Security
- The vulnerability closed, and the versions it affected.
## [1.0.0] - 2026-09-01
### Added
- First release.
[Unreleased]: https://example.com/project/compare/v1.1.0...HEAD
[1.1.0]: https://example.com/project/compare/v1.0.0...v1.1.0
[1.0.0]: https://example.com/project/releases/tag/v1.0.0
The link definitions at the foot turn each version heading into a link, to the comparison between two tags or, for the first release, to its own tag, after another of Keep a Changelog’s principles, “Versions and sections should be linkable.” Delete any heading that has no entries in a release.
The headings sort changes by what they cost the reader
Keep a Changelog groups entries under six types of changes. Read from the upgrading side, each heading tells the reader how much attention the lines beneath it need.
| Heading | What Keep a Changelog 1.1.0 puts there | What the upgrading reader does |
|---|---|---|
| Added | “for new features” | Nothing, beyond reading what is now possible |
| Changed | “for changes in existing functionality” | Checks each line against their own use |
| Deprecated | “for soon-to-be removed features” | Plans the replacement before the removal arrives |
| Removed | “for now removed features” | Changes their code before upgrading |
| Fixed | “for any bug fixes” | Takes out a workaround, if they had one |
| Security | “in case of vulnerabilities” | Decides how soon to upgrade |
Common Changelog keeps four of the six, in the order Changed, Added, Removed and Fixed, and says a deprecation can go under Changed. It adds a way to highlight breaking changes, which are prefixed in bold with **Breaking:** and listed first in their group. It also says what the grouping is for: “Changes that are listed under Removed will typically be breaking, while anything under Added is potentially interesting to the reader but carries no risk when upgrading.”
The headings have to agree with the version number above them, because the number is read first. Keep a Changelog asks a project to “Mention whether you follow Semantic Versioning.” Under semantic versioning each part of the number promises a kind of change, and the Semantic Versioning 2.0.0 specification says that from 1.0.0 onwards the minor version “MUST be incremented if any public API functionality is marked as deprecated”, and the major version “MUST be incremented if any backward incompatible changes are introduced to the public API.” A release with a Deprecated entry for part of the public API is therefore at least a minor release, and one that removes part of it is a major release. Where the headings and the number disagree, one of them is wrong and the reader cannot tell which.
A commit message records what the developer did
Keep a Changelog’s page opens with the line “Don’t let your friends dump git logs into changelogs.” Its reason comes further down: “The purpose of a commit is to document a step in the evolution of the source code.” A changelog entry has another purpose, “to document the noteworthy difference, often across multiple commits, to communicate them clearly to end users.”
Here are the commits behind version 4.0.0 of the invented library, each beside the entry it becomes.
| Commit message | Changelog entry | Heading |
|---|---|---|
refactor!: drop legacy opts | Remove the sep option, deprecated since 3.2.0. Pass delimiter, which takes the same values. | Removed |
chore: bump CI matrix | Require Python 3.10 or later. Python 3.9 is no longer supported. | Changed |
fix: parser edge case (#212) | Fix a quoted field that contains a line break being split across two rows (#212). | Fixed |
feat(reader): streaming | Add read_rows(), which yields one row at a time, so a file larger than memory can be parsed. | Added |
perf: faster number parsing, then revert: faster number parsing | No entry. The two cancel out. | None |
docs: fix typo, style: run formatter, chore: bump pytest | No entry. The published package is the same. | None |
The first commit names a tidy-up, and its entry names the option that stops working and the replacement. The second hides, behind the prefix chore, the one change that stops some readers installing the release at all. Common Changelog lists “Changes to supported runtime environments (which may be reflected only in dotfiles)” among the changes that must not be excluded. The third names a place in the code. The reader never saw the parser. They saw rows split in two, so the entry describes that, in words taken from the bug report the fix closed.
Each entry begins with a verb in the imperative. That is Common Changelog’s rule, and one reason it gives is the upgrading reader: the imperative mood in a changelog “tells someone what upgrading will do.”
The prefixes on the left follow Conventional Commits 1.0.0, which lists “Automatically generating CHANGELOGs” among the reasons to use it. Common Changelog grants that the convention “does help to initially categorize changes” and adds that “commit messages must be converted to a more readable form.” A generated list is a draft, and the middle column is the editing.
The same release as a changelog section
Put together, the middle column becomes the section for 4.0.0. The headings follow Keep a Changelog’s order, the empty ones are gone, and the removal is marked in bold the way Common Changelog marks a breaking change.
## [4.0.0] - 2026-10-21
### Added
- Add `read_rows()`, which yields one row at a time, so a file larger than memory can be parsed.
### Changed
- **Breaking:** Require Python 3.10 or later. Python 3.9 is no longer supported.
### Removed
- **Breaking:** Remove the `sep` option, deprecated since 3.2.0. Pass `delimiter`, which takes the same values.
### Fixed
- Fix a quoted field that contains a line break being split across two rows (#212).
[4.0.0]: https://example.com/csv-library/compare/v3.2.0...v4.0.0
A reader on 3.2.0 can read this section and know the two things to do before upgrading. Keep a Changelog describes the path it allows: “It should be possible to upgrade to a version that lists deprecations, remove what’s deprecated, then upgrade to the version where the deprecations become removals.” That is why the removal names the version that deprecated sep.
Whatever the upgrading reader cannot notice stays out
The last two rows of the table have no entry, and that was a decision. Common Changelog’s advice is to “Exclude maintenance changes that are not interesting to consumers of the project (in its distributed form)”, and it names dotfile changes, changes to development-only dependencies, minor code style changes and formatting changes in documentation. Commits that negate each other between two releases, such as a change and its revert, are left out by the same guide.
Long explanation stays out too. Common Changelog holds a change to “no more than one line long” and says a changelog “is not a blog or detailed upgrade guide.” A migration that needs a page gets one, and the entry links to it.
Refactoring is the hard case. By the test in this post, a refactor with no visible effect has no entry. Common Changelog keeps it in, and lists “Refactorings, which may have unintentional side effects” among the changes that must not be excluded. The stricter rule costs one line and tells a reader where to look if something behaves differently after the upgrade. A project that leaves refactors out is promising that they changed nothing, and it has to be right.
Leaving out too much is the opposite failure. Keep a Changelog warns that “A changelog which only mentions some of the changes can be as dangerous as not having a changelog.” It also sets a floor: “If you do nothing else, list deprecations, removals, and any breaking changes in your changelog.”
The finished file is far shorter than the history behind it. What remains is the part of that history somebody else has to act on.
Entries are written with the change and edited at release
The person who made a change knows best what it does to a user, and knows it on the day it merges. Depfu’s article on writing or generating changelogs puts it as a risk: “the further away you move the changelog writing from the actual code changes, the higher are the chances to either forget things or to actually get details wrong.” Its low-tech answer is an Unreleased section plus a rule that each pull request arrives with its changelog entry, which leaves “an additional step of moderation and editing as part of the release process”. That step is where the Unreleased section is read as one piece before it becomes a version. A pull request template with a changelog line, or a review that asks for one, is enough to make the rule stick.
Writing it by hand or generating it
Generators differ in what they read. auto-changelog “generates a changelog based on tagged versions, merged pull requests and closed issues”, and one of its built-in templates is a Keep a Changelog layout. Tools such as conventional-changelog and semantic-release read commit messages written to the Conventional Commits convention. GitHub’s automatically generated release notes list “a list of merged pull requests”, “a list of contributors to the release” and “a link to a full changelog”, grouped into categories by pull request label in a .github/release.yml file. Each saves the gathering. None of them knows that chore: bump CI matrix dropped a Python version, so each output still goes through the edit the table above shows.
A single Unreleased section that every contributor edits also collides in merges. towncrier takes the other route, “Rather than reading the Git history, or having one single file which developers all write to and produce merge conflicts”. Each change adds a news fragment, “a small file containing just enough information to be useful to end users”, and the tool assembles the fragments into the file at release.
Where the file lives, and when to correct it
Keep a Changelog says “Call it CHANGELOG.md” and notes that some projects use HISTORY, NEWS or RELEASES. It treats GitHub Releases as a complement, because they “create a non-portable changelog that can only be displayed to users within the context of GitHub.” A release page can carry the same section, copied from the file in the repository.
A published changelog can be corrected. Keep a Changelog’s answer to whether you should ever rewrite one is “Sure. There are always good reasons to improve a changelog”, and its example is a breaking change the notes forgot. A release pulled for a serious bug or a security issue stays in the file too, marked so nobody installs it by mistake:
## [0.0.5] - 2014-12-13 [YANKED]
In its words, “The [YANKED] tag is loud for a reason.”