feat(changelog): skip unreleased section if no commits are associated
Cadoles/mktools/pipeline/head Something is wrong with the build of this commit
Details
Cadoles/mktools/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
5a0e3edc8e
commit
19785045b6
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue