From 79f116d7af466a1e264a0ee517fad4f5caded17d Mon Sep 17 00:00:00 2001 From: Meggie Date: Fri, 11 Dec 2020 18:09:33 -0500 Subject: [PATCH] Templates and 1 example (#10363) (#10541) --- changelog/10077.txt | 3 +++ changelog/changelog.tmpl | 48 ++++++++++++++++++++++++++++++++++++++++ changelog/note.tmpl | 3 +++ 3 files changed, 54 insertions(+) create mode 100644 changelog/10077.txt create mode 100644 changelog/changelog.tmpl create mode 100644 changelog/note.tmpl diff --git a/changelog/10077.txt b/changelog/10077.txt new file mode 100644 index 000000000000..09b6cd54cf6a --- /dev/null +++ b/changelog/10077.txt @@ -0,0 +1,3 @@ +```release-note:bug +core: Fix client.Clone() to include the address +``` diff --git a/changelog/changelog.tmpl b/changelog/changelog.tmpl new file mode 100644 index 000000000000..6f5183e85bb4 --- /dev/null +++ b/changelog/changelog.tmpl @@ -0,0 +1,48 @@ +{{- if index .NotesByType "breaking-change" -}} +BREAKING CHANGES: + +{{range index .NotesByType "breaking-change" -}} +* {{ template "note" .}} +{{ end -}} +{{- end -}} + +{{- if .NotesByType.security }} +SECURITY: + +{{range .NotesByType.security -}} +* {{ template "note" . }} +{{ end -}} +{{- end -}} + +{{- if .NotesByType.feature -}} +FEATURES: + +{{range .NotesByType.feature -}} +* {{ template "note" . }} +{{ end -}} +{{- end -}} + +{{- if .NotesByType.improvement }} +IMPROVEMENTS: + +{{range .NotesByType.improvement -}} +* {{ template "note" . }} +{{ end -}} +{{- end -}} + +{{- if .NotesByType.deprecation }} +DEPRECATIONS: + +{{range .NotesByType.deprecation -}} +* {{ template "note" . }} +{{ end -}} +{{- end -}} + +{{- if .NotesByType.bug }} +BUG FIXES: + +{{range .NotesByType.bug -}} +* {{ template "note" . }} +{{ end -}} +{{- end -}} + diff --git a/changelog/note.tmpl b/changelog/note.tmpl new file mode 100644 index 000000000000..022546f2753e --- /dev/null +++ b/changelog/note.tmpl @@ -0,0 +1,3 @@ +{{- define "note" -}} +{{.Body}}{{if not (stringHasPrefix .Issue "_")}} [[GH-{{- .Issue -}}](https://github.com/hashicorp/vault/pull/{{- .Issue -}})]{{end}} +{{- end -}}