mirror of
https://github.com/orhun/git-cliff.git
synced 2025-01-05 22:33:09 +03:00
fix(release): strip the unreleased title from tag message
This commit is contained in:
parent
62403be828
commit
c7f08fe4a3
@ -4,8 +4,10 @@ if [ -n "$1" ]; then
|
||||
cargo run -- --tag "$1" > CHANGELOG.md
|
||||
git add -A && git commit -m "chore(release): prepare for $1"
|
||||
changelog=$(cargo run -- --unreleased --strip all)
|
||||
changelog=${changelog//### /}
|
||||
changelog=${changelog//## [unreleased\]/}
|
||||
git -c user.name="git-cliff" \
|
||||
-c user.email="git-cliff@protonmail.com" \
|
||||
-c user.signingkey="1D2D410A741137EBC544826F4A92FA17B6619297" \
|
||||
tag -s -a "$1" -m "Release $1\n\n${changelog//### /}"
|
||||
tag -s -a "$1" -m "Release $1" -m "$changelog"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user