mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
[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 <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
parent
f9adb454d0
commit
5f8575db48
2 changed files with 6 additions and 0 deletions
3
changelog/note-ce.tmpl
Normal file
3
changelog/note-ce.tmpl
Normal file
|
|
@ -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 -}}
|
||||
3
changelog/note-ent.tmpl
Normal file
3
changelog/note-ent.tmpl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{- define "note" -}}
|
||||
{{.Body}}
|
||||
{{- end -}}
|
||||
Loading…
Reference in a new issue