From a5e91258d6d4a7f92d48865b7dae054bfaea9151 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Thu, 16 Jan 2020 17:35:54 -0500 Subject: [PATCH] Update Changelog --- CHANGELOG.md | 2 +- scripts/chglog/CHANGELOG-full-history.tpl.md | 12 ++++++++---- scripts/chglog/CHANGELOG-release-note.tpl.md | 6 ++++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc5f6a5..0bf0c78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ ## [Unreleased] + ### Bug Fixes - Show empty JSON properties, as 'null' for all types ([#166](https://github.com/segmentio/terraform-docs/issues/166)) -- Do not wrap multiline blocks in table with ([#164](https://github.com/segmentio/terraform-docs/issues/164)) - Show all JSON properties, empty or null ([#160](https://github.com/segmentio/terraform-docs/issues/160)) - Do not escape strings inside code blocks ([#155](https://github.com/segmentio/terraform-docs/issues/155)) - Read leading module header from main.tf ([#154](https://github.com/segmentio/terraform-docs/issues/154)) diff --git a/scripts/chglog/CHANGELOG-full-history.tpl.md b/scripts/chglog/CHANGELOG-full-history.tpl.md index 2a52952..b8d32af 100755 --- a/scripts/chglog/CHANGELOG-full-history.tpl.md +++ b/scripts/chglog/CHANGELOG-full-history.tpl.md @@ -4,12 +4,14 @@ ## [Unreleased] {{ if .Unreleased.CommitGroups -}} -{{ range .Unreleased.CommitGroups -}} +{{ range .Unreleased.CommitGroups }} ### {{ .Title }} {{ range .Commits -}} +{{ if not (contains .Subject "") -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }} -{{ end }} {{ end -}} +{{ end -}} +{{ end }} {{ else }} {{ range .Unreleased.Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }} @@ -30,12 +32,14 @@ ## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} {{ if .CommitGroups -}} -{{ range .CommitGroups -}} +{{ range .CommitGroups }} ### {{ .Title }} {{ range .Commits -}} +{{ if not (contains .Subject "") -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }} -{{ end }} {{ end -}} +{{ end -}} +{{ end }} {{ else }} {{ range .Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }} diff --git a/scripts/chglog/CHANGELOG-release-note.tpl.md b/scripts/chglog/CHANGELOG-release-note.tpl.md index 462345e..b7165f4 100755 --- a/scripts/chglog/CHANGELOG-release-note.tpl.md +++ b/scripts/chglog/CHANGELOG-release-note.tpl.md @@ -2,12 +2,14 @@ {{ range .Versions }} {{ if .CommitGroups -}} -{{ range .CommitGroups -}} +{{ range .CommitGroups }} ### {{ .Title }} {{ range .Commits -}} +{{ if not (contains .Subject "") -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }} -{{ end }} {{ end -}} +{{ end -}} +{{ end }} {{ else }} {{ range .Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ if .Subject }}{{ .Subject }}{{ else }}{{ .Header }}{{ end }}