1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-11 06:55:38 +03:00

style(release): update the changelog template for tag message

This commit is contained in:
Orhun Parmaksız 2022-04-24 14:52:27 +03:00
parent b400690a1f
commit 72544b1807
No known key found for this signature in database
GPG Key ID: B928720AEC532117

View File

@ -10,14 +10,14 @@ if [ -n "$1" ]; then
git add -A && git commit -m "chore(release): prepare for $1"
git show
# generate a changelog for the tag message
export TEMPLATE="\
export GIT_CLIFF_TEMPLATE="\
{% for group, commits in commits | group_by(attribute=\"group\") %}
{{ group | upper_first }}\
{% for commit in commits %}
- {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\
{% endfor %}
{% endfor %}"
changelog=$(cargo run -- --unreleased --strip all)
changelog=$(cargo run -- --config examples/detailed.toml --unreleased --strip all)
# create a signed tag
# https://keyserver.ubuntu.com/pks/lookup?search=0x4A92FA17B6619297&op=vindex
git -c user.name="git-cliff" \