mirror of https://github.com/databricks/cli.git
Integrate with auto-release infra (#581)
## Changes - added changelog template - added `toolchain` to `.codegen.json` ## Tests none
This commit is contained in:
parent
65d8fe13e9
commit
ff98096208
|
@ -6,5 +6,8 @@
|
|||
"batch": {
|
||||
".codegen/cmds-workspace.go.tmpl": "cmd/workspace/cmd.go",
|
||||
".codegen/cmds-account.go.tmpl": "cmd/account/cmd.go"
|
||||
},
|
||||
"toolchain": {
|
||||
"required": ["go"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# Version changelog
|
||||
|
||||
## {{.Version}}
|
||||
|
||||
{{range .Changes -}}
|
||||
* {{.}}.
|
||||
{{end}}{{- if .ApiChanges}}
|
||||
API Changes:
|
||||
{{range .ApiChanges}}{{if or (eq .X "method") (eq .X "service")}}
|
||||
* {{.Action}} {{template "what" .}}{{if .Extra}} {{.Extra}}{{with .Other}} {{template "what" .}}{{end}}{{end}}.
|
||||
{{- end}}{{- end}}
|
||||
|
||||
OpenAPI SHA: {{.Sha}}, Date: {{.Changed}}
|
||||
{{- end}}{{if .DependencyUpdates}}
|
||||
Dependency updates:
|
||||
{{range .DependencyUpdates}}
|
||||
* {{.}}.
|
||||
{{- end -}}
|
||||
{{end}}
|
||||
|
||||
## {{.PrevVersion}}
|
||||
|
||||
{{- define "what" -}}
|
||||
{{if eq .X "service" -}}
|
||||
`databricks {{if .Service.IsAccounts}}account {{end -}}{{(.Service.TrimPrefix "account").KebabName}}` command group
|
||||
{{- else if eq .X "method" -}}
|
||||
`databricks {{if .Method.Service.IsAccounts}}account {{end -}}{{(.Method.Service.TrimPrefix "account").KebabName}} {{.Method.KebabName}}` command
|
||||
{{- end}}
|
||||
{{- end -}}
|
Loading…
Reference in New Issue