From ca65cd5a626c7975c9b13ec4f7f5a2722b829a34 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 15 Jan 2024 19:12:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20chore(release):=20fix=20git-clif?= =?UTF-8?q?f=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cliff.toml | 2 +- release | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cliff.toml b/cliff.toml index 0d6a60c..cd2a5d5 100644 --- a/cliff.toml +++ b/cliff.toml @@ -39,7 +39,7 @@ body = """ {% set_global breaking_header_shown = true %} {%- endif -%} {%- if commit.breaking -%} - {{ self::commit(commit=commit, in_breaking_section=true) }} + {{ self::commit(commit=commit, in_breaking_section=true) -}} {% endif -%} {%- endfor -%} {%- if breaking_header_shown == true -%} diff --git a/release b/release index 7578325..a0f9153 100644 --- a/release +++ b/release @@ -42,8 +42,8 @@ export GIT_CLIFF_TEMPLATE="\ {% endfor %} {% for group, group_commits in commits | group_by(attribute=\"group\") %} {{ group | striptags | trim | upper_first }} - {% for commit in group_commits -%} - - {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ + {% for commit in group_commits %} + - {% if commit.breaking %}[**‼️BREAKING‼️**] {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ {%- endfor %} {% endfor %}"