From 316c11b60756f8b38174433450d42f25919368b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 11 Dec 2021 15:20:29 +0300 Subject: [PATCH] chore(config): indicate the breaking changes via default config --- config/cliff.toml | 2 +- release.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cliff.toml b/config/cliff.toml index abba68c4..e57b38b1 100644 --- a/config/cliff.toml +++ b/config/cliff.toml @@ -17,7 +17,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - {{ commit.message | upper_first }}\ + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ {% endfor %} {% endfor %}\n """ diff --git a/release.sh b/release.sh index 61005775..815ab48a 100755 --- a/release.sh +++ b/release.sh @@ -14,7 +14,7 @@ if [ -n "$1" ]; then {% for group, commits in commits | group_by(attribute=\"group\") %} {{ group | upper_first }}\ {% for commit in commits %} - - {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ + - {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ {% endfor %} {% endfor %}" changelog=$(cargo run -- --unreleased --strip all)