From 8fca518ea71711f3839508994acba2ac7bf207d5 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Tue, 30 Jan 2024 14:49:27 +0100 Subject: [PATCH] Add .codegen.json configuration (#3180) * Add codegen configuration * add changelog template * comments --- .codegen.json | 14 ++++++++++++++ .codegen/changelog.md.tmpl | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .codegen.json create mode 100644 .codegen/changelog.md.tmpl diff --git a/.codegen.json b/.codegen.json new file mode 100644 index 0000000000..fd308f7ef7 --- /dev/null +++ b/.codegen.json @@ -0,0 +1,14 @@ +{ + "formatter": "make fmt", + "version": { + "common/version.go": "version = \"$VERSION\"" + }, + "toolchain": { + "required": [ + "go" + ], + "post_generate": [ + "make test" + ] + } +} \ No newline at end of file diff --git a/.codegen/changelog.md.tmpl b/.codegen/changelog.md.tmpl new file mode 100644 index 0000000000..fdb4bcc388 --- /dev/null +++ b/.codegen/changelog.md.tmpl @@ -0,0 +1,22 @@ +# Version changelog + +## {{.Version}} + +### New Features and Improvements +{{range .Changes -}} + * {{.}}. +{{end}} + +### Documentation Changes + +### Exporter + +### Internal Changes +{{if .DependencyUpdates}} +Dependency updates: +{{range .DependencyUpdates}} + * {{.}}. +{{- end -}} +{{end}} + +## {{.PrevVersion}} \ No newline at end of file