Add a Keep a Changelog 1.1.0 entry to
the repository-root CHANGELOG.md. Show the resulting diff; do not commit.
- Choose the source. Run
git status --short. If there are uncommitted changes, staged or not, usegit diff HEAD. Otherwise compare the branch withmain, ormasterifmaindoes not exist:git diff $(git merge-base HEAD <base>)...HEAD. Readgit log <merge-base>..HEADfor context. If both sources are empty, tell the user there is nothing to record and stop. Read the full diff, not only its stat, before categorizing. - Match the changelog. If
CHANGELOG.mdexists, note its heading depth, version scheme, per-package subheadings, and separator between version and date. If absent, create it from the template below, starting at0.0.1unless the user, tags, or a manifest such aspackage.jsonorCargo.tomlsuggests another version. - Choose a version. Bump the latest heading by SemVer: patch for
Fixedonly; minor forAddedor non-breakingChanged; major for breakingChangedorRemoved. Before 1.0 (0.x.y), bump the patch for everything unless the user says otherwise. Ask if unsure. - Write the entry. Use today's date from
date +%Y-%m-%d. Insert it directly below the preamble and above the previous version. Use sectionsAdded,Changed,Deprecated,Removed,Fixed, andSecurity, in that order, omitting empty sections. - Show the diff of
CHANGELOG.md.
Entry style
Write one bullet per logical change, not per file. If the changelog is organized by package, module, or file, lead with that name. State what changed and why when it is not obvious; omit needless words according to CONCISE-PROSE.md. Wrap at about 80 characters, indent continuation lines by two spaces, and put identifiers, paths, env vars, and flags in backticks.
Match existing punctuation exactly, including the separator between version
and date. Include commit hashes, PR numbers, author names, refactors with no
observable effect, or an [Unreleased] section only when the existing
changelog already uses them.
Use this template when creating a changelog:
md# 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/). ## [X.Y.Z] — YYYY-MM-DD ### Added - ...


