From 35625f66bf5c8895258e8f2dc3e4913f192f9909 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 25 Aug 2023 08:17:20 -0600 Subject: [PATCH] feat(changelog): display message in changelog when no commit is selected in release --- .chglog/CHANGELOG.tpl.md | 2 ++ tasks/changelog.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index 17f5fd4..1aa5e5c 100644 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -20,6 +20,8 @@ {{ range .Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} {{ end }} +{{ else }} +_Nothing functionally significant._ {{ end -}} {{- if .NoteGroups -}} diff --git a/tasks/changelog.mk b/tasks/changelog.mk index 2433480..6fca3ce 100644 --- a/tasks/changelog.mk +++ b/tasks/changelog.mk @@ -71,6 +71,8 @@ cat > .chglog/CHANGELOG.tpl.md << EOF {{ range .Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} {{ end }} +{{ else }} +_Nothing functionally significant._ {{ end -}} {{- if .NoteGroups -}}