{"slug": "let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it", "title": "Let your AI coding assistant write the changelog, without dumping git log into it", "summary": "A guide by Elena Novak of NBT outlines a repeatable workflow for having AI coding assistants draft changelogs from git history rather than pasting raw git log output. The approach feeds the assistant commits since the last tag (excluding merges) plus a diffstat, and has it sort changes into the six fixed Keep a Changelog 1.1.0 categories, optionally using Conventional Commits 1.0.0 types to map changes to semantic version bumps.", "body_md": "*By Elena Novak, NBT*\n\nRelease day often goes like this: the code is ready, the tag is waiting, and someone has to write the changelog. It's tempting to paste `git log` into the file and call it done. That's also exactly what the people behind Keep a Changelog ask you not to do. The first line of their site reads: \"Don't let your friends dump git logs into changelogs.\"\n\nAn AI coding assistant is very good at the work in between: reading forty commits and the diffs behind them, grouping them, and rewriting them in words a user understands. It just needs the right inputs and a clear format to fill. This guide sets that up so it's repeatable, and so you review a short draft instead of writing from nothing. If you're still choosing a tool, our comparison of [AI coding assistant options: Claude Code, Codex and Copilot CLI](https://www.ninjabuilder.app/blog/claude-code-vs-codex-vs-copilot-cli) covers the main terminal agents. Everything below works with any of them.\n\nThe format rules come from Keep a Changelog 1.1.0 and Conventional Commits 1.0.0, both fetched on 6 December 2026.\n\nKeep a Changelog explains the difference well. A commit documents a step in how the code evolved. A changelog entry documents a noteworthy difference, often across several commits, for the people who use the software. Commit logs are full of noise: merge commits, commits with vague titles, documentation tweaks.\n\nSo the assistant's job isn't to summarise commits one by one. It's to work out what changed for a user, and leave the rest out.\n\nStart `CHANGELOG.md` with the structure the assistant will fill in. Keep a Changelog's version looks like this:\n\n```\n# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on Keep a Changelog, and this project adheres to Semantic Versioning.\n\n## [Unreleased]\n\n## [1.4.0] - 2026-11-20\n### Added\n- Export to CSV from the reports page.\n### Fixed\n- Dates in the weekly email now use the reader's time zone.\n```\n\nUnder each version, entries go into six fixed groups: **Added** for new features, **Changed** for changes to existing behaviour, **Deprecated** for features that will be removed soon, **Removed** for features now gone, **Fixed** for bug fixes and **Security** for vulnerabilities. A fixed set of headings is exactly what an AI does well with, because sorting into known groups is far more reliable than inventing its own structure.\n\nKeep an **Unreleased** section at the top. Keep a Changelog recommends it so people can see what's coming, and so that at release time you only need to rename it to the new version.\n\nIf your team writes commits in the Conventional Commits format, the assistant has a strong head start. The format is `<type>[optional scope]: <description>`, and the spec ties the main types to version numbers:\n\n`fix:` patches a bug, which matches a PATCH release in Semantic Versioning.`feat:` adds a feature, which matches a MINOR release.`BREAKING CHANGE:` footer, or a `!` after the type (`feat!:` or `feat(api)!:`), marks a breaking change, which matches a MAJOR release.\nOther types such as `docs:`, `refactor:`, `test:` and `ci:` are allowed. The spec mentions them as conventions from commitlint's Angular-based config, and they have no effect on the version unless they include a breaking change. That makes them easy candidates to leave out of a user-facing changelog.\n\nYou don't need perfect commit discipline for this to work. A mix of good and lazy commit messages is fine, as long as the assistant reads the diffs as well as the messages.\n\nAsk for the changes since the last tag, with enough detail to understand them:\n\n```\nLAST=$(git describe --tags --abbrev=0)\ngit log \"$LAST\"..HEAD --no-merges --pretty=format:'%h %s%n%b' > /tmp/commits.txt\ngit diff --stat \"$LAST\"..HEAD > /tmp/diffstat.txt\n```\n\n`--no-merges` drops the merge commits Keep a Changelog calls noise. The diffstat shows the assistant where the real changes were, so a commit titled \"misc fixes\" that touched the billing module gets a proper look.\n\nHere is a prompt to start from. Paste it into your assistant in the repository:\n\nUpdate the `[Unreleased]` section of CHANGELOG.md for the changes since tag `$LAST`. Read /tmp/commits.txt and /tmp/diffstat.txt, and open the diff of any commit whose message doesn't make the user-facing effect clear. Rules: write for users of the product, not developers. One line per change, starting with what the user can now do or what was fixed. Group under Added, Changed, Deprecated, Removed, Fixed, Security, and leave out empty groups. Merge commits that make up one change into one line. Leave out refactors, tests, CI, dependency bumps and docs unless they change behaviour. List any breaking change first under Changed or Removed, starting with \"BREAKING:\". Don't invent anything you can't point to in a commit, and at the end of your reply list the commit hashes you left out.\n\nThe last sentence is what keeps the draft honest. Every line has to come from something real, and the list of left-out commits gives you a quick way to check nothing important was dropped.\n\nRead the draft as a user would. Three checks catch most problems:\n\n`BREAKING CHANGE` commits with the draft.\nThen edit, commit the changelog together with the version bump, and tag.\n\nThe cheapest version of this runs after every merged pull request: the assistant adds one or two lines to Unreleased while the change is still fresh. Release day then shrinks to renaming the section and adding the date. Keep a Changelog prefers dates written like 2017-07-17 (year, month, day, largest unit first), so no reader misreads the day.\n\nThe assistant does the reading and sorting. You check that what it wrote is true and worth telling users. Split that way, the changelog stops being the step everyone skips.", "url": "https://wpnews.pro/news/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it", "canonical_source": "https://dev.to/attilaalbert/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it-em", "published_at": "2026-12-06 09:05:53+00:00", "updated_at": "2026-12-06 09:15:16.732107+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["Keep a Changelog", "Conventional Commits", "Claude Code", "Codex", "Copilot CLI", "NBT", "Elena Novak"], "also_reported_by": [], "takeaway": "Feeding an AI assistant commits since the last tag with --no-merges plus a diffstat, and having it sort entries into Keep a Changelog's six fixed headings, produces a reviewable changelog draft instead of a raw git log dump.", "recommendation": {"advice": "Give your coding agent the non-merge commits since the last tag plus a diffstat, and have it fill Keep a Changelog's six fixed headings rather than summarizing commits one by one.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it", "markdown": "https://wpnews.pro/news/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it.md", "text": "https://wpnews.pro/news/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it.txt", "jsonld": "https://wpnews.pro/news/let-your-ai-coding-assistant-write-the-changelog-without-dumping-git-log-into-it.jsonld"}}