From 19785045b6dad24f30437b2b2c98c48dba5c18e0 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 24 Aug 2023 10:27:38 -0600 Subject: [PATCH] feat(changelog): skip unreleased section if no commits are associated --- tasks/changelog.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/changelog.mk b/tasks/changelog.mk index ce3607f..12182f2 100644 --- a/tasks/changelog.mk +++ b/tasks/changelog.mk @@ -50,10 +50,10 @@ define _MKT_GIT_CHGLOG_TEMPLATE_SCRIPT = mkdir -p .chglog cat > .chglog/CHANGELOG.tpl.md << EOF {{ if .Versions -}} +{{ if .Unreleased.CommitGroups -}} ## [Unreleased] -{{ if .Unreleased.CommitGroups -}} {{ range .Unreleased.CommitGroups -}} ### {{ .Title }} {{ range .Commits -}}