From 5f8575db48b0d6cbd9f57a6dcbf79ebf79404c51 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Thu, 28 Aug 2025 13:54:33 -0600 Subject: [PATCH] [VAULT-39237] actions(generate-changelog) generate changelogs in ce for active ce versions (#8973) (#8976) Update our changelog generator to dynamically decide which repository context that it should use when generating the changelog. If the version given corresponds to an active CE branch then we generate the changelog in the context of `hashicorp/vault` with the `note-ce.md` template. If the version corresponds to an enterprise only branch we generate the changelog in the context of `hashicorp/vault-enterprise` with the `note-ent.md` template. The reason we do all of this is so that we can add commit links to changelogs that for changes that are actually in community editions. Signed-off-by: Ryan Cragun Co-authored-by: Ryan Cragun --- changelog/note-ce.tmpl | 3 +++ changelog/note-ent.tmpl | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 changelog/note-ce.tmpl create mode 100644 changelog/note-ent.tmpl diff --git a/changelog/note-ce.tmpl b/changelog/note-ce.tmpl new file mode 100644 index 0000000000..dad09f23b7 --- /dev/null +++ b/changelog/note-ce.tmpl @@ -0,0 +1,3 @@ +{{- define "note" -}} +{{.Body}}{{if not (stringHasPrefix .Issue "_")}} [[GH-{{- .Issue -}}](https://github.com/hashicorp/vault/pull/{{- .Issue -}})]{{else}}{{if .Hash }} ([{{- slice .Hash 0 8 -}}](https://github.com/hashicorp/vault/commits/{{- .Hash -}})){{end}}{{end}} +{{- end -}} diff --git a/changelog/note-ent.tmpl b/changelog/note-ent.tmpl new file mode 100644 index 0000000000..7d3e7e8712 --- /dev/null +++ b/changelog/note-ent.tmpl @@ -0,0 +1,3 @@ +{{- define "note" -}} +{{.Body}} +{{- end -}}