From 37128a8c1ab28f401ddf20ce370827b2c25d8c80 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Sun, 1 Jun 2025 12:45:25 +0000
Subject: [PATCH] chore(justfile): Improve the changelog body
Signed-off-by: Awiteb
---
justfile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/justfile b/justfile
index 5937c51..764a6e8 100644
--- a/justfile
+++ b/justfile
@@ -19,7 +19,8 @@ tag_change_body := '''{% for group, commits in commits | group_by(attribute="gro
{{ group | upper_first }}
{% for commit in commits %}
-- {{ commit.message | split(pat="\n") | first | split(pat=":") | slice(start=1) | join(sep=":") | upper_first | trim }} - (by {{ commit.author.name}}){% endfor %}{% endfor %}'''
+- {{ commit.message | split(pat="\n") | first | split(pat=":") | slice(start=1) | join(sep=":") | upper_first | trim }} - by {{ commit.author.name}}{% endfor %}{% endfor %}
+'''
export TZ := "UTC"
@@ -64,7 +65,7 @@ changelog:
[script]
release version:
set -e
- TAG_MSG="Version {{ version }}\n\n$(git-cliff --strip all --unreleased --body '{{ tag_change_body }}')\n"
+ TAG_MSG="Version {{ version }}$(git-cliff --strip all --unreleased --body '{{ tag_change_body }}')"
sed -i "s/^version\s*= \".*\"/version = \"{{ version }}\"/" ./Cargo.toml
taplo fmt --config ./.taplo.toml ./Cargo.toml
{{ JUST_EXECUTABLE }} ci