Skip to content
Careersbeginner

What is a changelog?

Updated Nov 30, 20263 min readBased on official documentation
What is a changelog?

In short

A changelog is a file that lists the notable changes made in each version of a project, newest first. It helps users and contributors see what changed between releases, what will break, and what to expect next. Most projects keep it in a plain text or Markdown file named CHANGELOG.md.

What a changelog is

A changelog is a file that records the important changes in a software project. Each version gets its own entry. The entry says what was added, what was changed, what was removed, and what was fixed. The list is written for people, not for machines, so it leaves out small details that nobody needs to know about.

The main job of a changelog is to answer one question: what is different in this version? Users want to know whether an upgrade is safe. Other developers want to know whether they need to change their own code. A good changelog answers both questions without making readers dig through hundreds of commits.

How a good changelog is organized

A few simple rules make a changelog easy to scan. The most important one is that the latest version comes first, so readers see new changes right away. Each version shows its release date, and the date is best written in the ISO format, such as 2017-07-17. That format puts year, month and day in order, so it is hard to misread.

Changes are grouped by type. The common groups are:

  • Added for new features.
  • Changed for changes to existing features.
  • Deprecated for features that will be removed later.
  • Removed for features that are gone now.
  • Fixed for bug fixes.
  • Security for vulnerability fixes.

The entry should also say whether the project follows Semantic Versioning, a numbering scheme where the version number signals how big a change is. Each version and section should have a link, so people can share or jump to a specific part of the file.

Keep an Unreleased section

Writing the changelog at the last minute is hard, and it is easy to forget things. A useful habit is to keep an Unreleased section at the top of the file. Each time you finish a change worth mentioning, add a line there. People can read it to see what is coming next.

When it is time to release, you move the Unreleased lines into a new section with the version number and the date. This takes a few minutes instead of an afternoon of searching through history. If you work with a team that uses a branching model, such as the approach described in our guide to Git workflows, the Unreleased section works well as a shared place to collect changes from many branches.

Common mistakes

The first mistake is copying the commit log into the changelog. Commit logs are full of noise, such as merge commits, short messages like "fix typo", and documentation edits. A commit records one step in the code's history. A changelog entry describes the difference a user will notice, which may come from several commits combined.

The second mistake is hiding deprecations and breaking changes. When people upgrade, they should be able to see clearly what will stop working. A sound approach is to release a version that marks features as deprecated, then remove them in a later version. If the changelog does not mention these steps, upgrades become risky.

The third mistake is being inconsistent. If a changelog mentions only some of the important changes, readers may stop trusting it and look elsewhere. Small edits, such as removing one space in a file, do not need an entry. Anything that affects users or other developers should appear.

Changelogs and commit conventions

Changelogs and commit messages are related. If your team writes commit messages in a consistent format, you can often build the changelog from them with less effort. Our page on conventional commits explains one such format. Even then, a person should review the result, because the changelog is for readers, not for the version control system.

Alternatives and extras

Some teams publish release notes on code hosting platforms instead of keeping a file. These notes can be rich and easy to write, but they live inside one platform and can be harder for users to find. Many projects keep a CHANGELOG.md file in the repository and may also publish release notes online. Using both is a reasonable choice.

If you are new to the topic, start small. Create a CHANGELOG.md file, add an Unreleased section, and write one entry for your next release. The habit matters more than the perfect format. Over time, your readers and teammates will rely on the file more and more.

FAQ

Where should I put a changelog in my project?

Most projects place it at the top level of the repository and name it CHANGELOG.md. Using a consistent, easy-to-find name helps users locate notable changes quickly.

Should I list every commit in my changelog?

No. Commit logs include merge commits and minor edits that most readers do not need. Write entries that describe the noticeable differences a user or developer will care about.

Why is an Unreleased section useful?

It lets readers see upcoming changes before a release, and it saves you work at release time because you only move the existing lines into a new version section.

What should I do with a version that was pulled because of a serious bug?

Keep it in the changelog and mark it as yanked, for example with a [YANKED] tag in its heading. People need to notice that the version was withdrawn.

Sources

This page is based on the official documentation below. Read it for full detail.

Changelog — official documentation ↗
blozhikDeveloper news from across the web, explained. Every story links to its original sources.