I tag releases, then dread writing the notes. So I automated it.
说明与用途
一键式离线工具,基于 Conventional Commit 自动生成发布说明,输出 Markdown 或 JSON。
问题
After tagging a release, manually compiling release notes from commit logs is tedious and error‑prone.
结果
The script produces categorized release notes (Breaking Changes, Features, Fixes, Other changes) in Markdown, reducing manual effort and minimizing missed changes.
工作流
- 1. Download script:
curl -O https://raw.githubusercontent.com/hahahahahahahahah6/git-release-notes/main/git_release_notes.py - 2. Make executable:
chmod +x git_release_notes.py - 3. Run script:
./git_release_notes.py - 4. Capture output (Markdown) and copy to release page or pipe to
pbcopy. - 5. Optional flags:
--verbose,--json,--title v1.4.0. - 6. Script diffs from most recent tag reachable from HEAD; if empty, falls back to previous tag.
证据
git-release-notes does that archaeology for you — in one command, offline, conventional-commit aware:
With no arguments it diffs from the most recent tag reachable from HEAD to HEAD (and if the range is empty only because you just tagged, it falls back to the previous tag instead).
This is not a GitHub-Action release drafter. No API, no tokens, no CI workflow to wire up — it works on a plane, in a monorepo, on a bare server.
- 记录日期: 2026-10-01T20:25:46.564Z