From a202771d36135165c7f76f7727da11e16c647243 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sat, 6 May 2023 18:41:48 +0200 Subject: [PATCH] Improve template: Always include lines that start with 'BREAKING CHANGE' --- cliff.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cliff.toml b/cliff.toml index bad1f50c3..73b7714c0 100644 --- a/cliff.toml +++ b/cliff.toml @@ -61,6 +61,9 @@ body = """ ### {{ group | upper_first }} {% for commit in commits %} - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% for footer in commit.footers %}{% if 'BREAKING CHANGE' in footer.token %} + {% raw %} {% endraw %}- {{ footer.value }}\ + {% endif %}{% endfor %}\ {% endfor %} {% endfor %}\n """