feat(changelog): skip unreleased section if no commits are associated
Some checks reported errors
Cadoles/mktools/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
wpetit 2023-08-24 10:27:38 -06:00
parent 5a0e3edc8e
commit 19785045b6

View File

@ -50,10 +50,10 @@ define _MKT_GIT_CHGLOG_TEMPLATE_SCRIPT =
mkdir -p .chglog
cat > .chglog/CHANGELOG.tpl.md << EOF
{{ if .Versions -}}
{{ if .Unreleased.CommitGroups -}}
<a name="unreleased"></a>
## [Unreleased]
{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}