From 8796e0472a9684f8ba16d6e0fe134e41e1d359c9 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 15 May 2023 12:34:11 +0000 Subject: [PATCH] build(git-cliff): add scope to changelog entries --- cliff.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index c4fd25e32..a5ad40a96 100644 --- a/cliff.toml +++ b/cliff.toml @@ -61,7 +61,9 @@ body = """ {% 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 }}.\ + - {% if commit.breaking %}[**breaking**] {% endif %}\ + {% if commit.scope %}{{ commit.scope }}: {% endif %}\ + {{ commit.message | upper_first }}.\ {% for footer in commit.footers %}{% if 'BREAKING CHANGE' in footer.token %} {% raw %} {% endraw %}- {{ footer.value }}\ {% endif %}{% endfor %}\