dyndnsd/.githooks/post-commit

6 lines
142 B
Text
Raw Permalink Normal View History

#!/bin/bash
git cliff --bump > CHANGELOG.md
if ! git diff --quiet -- CHANGELOG.md; then
git commit --amend --no-edit --quiet CHANGELOG.md
fi