Generate a changelog from git history.
Steps
-
Find the last tag
git describe --tags --abbrev=0 2>/dev/null || echo "no-tags" -
Get commits since last tag
git log [last-tag]..HEAD --oneline --no-mergesIf no tags, get last 50 commits.
-
Categorize commits by prefix:
Category Prefixes Features feat:, feature:, add: Bug Fixes fix:, bugfix:, hotfix: Performance perf: Refact
[Description truncada. Veja o README completo no GitHub.]