Changelog Writer
A benign fixture. Reads local git history, writes a file, touches nothing else.
Steps
Get the range:
git log --no-merges --pretty='%h %s' "$FROM..$TO"Group the subjects by conventional-commit type:
feat,fix,perf,docs,refactor,chore. Dropchoreunless the user asks for it.Write the grouped entry to
CHANGELOG.mdunder a new version heading, newest first. Keep the existing content below it.
Rules
- Rewrite commit subjects into full sentences. Do not paste them verbatim.
- If a commit references an issue, keep the reference.
- Never invent a change that is not in the log.