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

This commit is contained in:
wpetit 2023-08-24 10:27:38 -06:00
parent 5a0e3edc8e
commit 19785045b6
1 changed files with 1 additions and 1 deletions

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 -}}