Skip to content

Commit

Permalink
Add .codegen.json configuration (#3180)
Browse files Browse the repository at this point in the history
* Add codegen configuration

* add changelog template

* comments
  • Loading branch information
mgyucht authored Jan 30, 2024
1 parent 86d78e2 commit 8fca518
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .codegen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"formatter": "make fmt",
"version": {
"common/version.go": "version = \"$VERSION\""
},
"toolchain": {
"required": [
"go"
],
"post_generate": [
"make test"
]
}
}
22 changes: 22 additions & 0 deletions .codegen/changelog.md.tmpl
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 8fca518

Please sign in to comment.