-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for auto-releaser infra (#554)
## Changes - make `code.Field` always pointers - added codegen toolchain config - added changelog template - refactored code generator to a dedicated package ## Tests - prepare release for python sdk
- Loading branch information
Showing
10 changed files
with
263 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Version changelog | ||
|
||
## {{.Version}} | ||
|
||
{{range .Changes -}} | ||
* {{.}}. | ||
{{end}}{{- if .ApiChanges}} | ||
API Changes: | ||
{{range .ApiChanges}} | ||
* {{.Action}} {{template "what" .}}{{if .Extra}} {{.Extra}}{{with .Other}} {{template "what" .}}{{end}}{{end}}. | ||
{{- end}} | ||
|
||
OpenAPI SHA: {{.Sha}}, Date: {{.Changed}} | ||
{{- end}}{{if .DependencyUpdates}} | ||
Dependency updates: | ||
{{range .DependencyUpdates}} | ||
* {{.}}. | ||
{{- end -}} | ||
{{end}} | ||
|
||
## {{.PrevVersion}} | ||
|
||
{{- define "what" -}} | ||
{{if eq .X "package" -}} | ||
[{{.Package.Name}}](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/{{.Package.Name}}) package | ||
{{- else if eq .X "service" -}} | ||
{{template "service" .Service}} | ||
{{- else if eq .X "method" -}} | ||
`{{.Method.PascalName}}` method for {{template "service" .Method.Service}} | ||
{{- else if eq .X "entity" -}} | ||
{{template "entity" .Entity}} | ||
{{- else if eq .X "field" -}} | ||
`{{.Field.PascalName}}` field for {{template "entity" .Field.Of}} | ||
{{- end}} | ||
{{- end -}} | ||
|
||
{{- define "service" -}} | ||
[{{if .IsAccounts}}a{{else}}w{{end}}.{{.PascalName}}](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/{{.Package.Name}}#{{.PascalName}}API) {{if .IsAccounts}}account{{else}}workspace{{end}}-level service | ||
{{- end -}} | ||
|
||
{{- define "entity" -}} | ||
{{- if not . }}any /* ERROR */ | ||
{{- else if .IsEmpty}}`any` | ||
{{- else if .PascalName}}[{{.Package.Name}}.{{.PascalName}}](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/{{.Package.Name}}#{{.PascalName}}) | ||
{{- else if .IsAny}}`any` | ||
{{- else if .IsString}}`string` | ||
{{- else if .IsBool}}`bool` | ||
{{- else if .IsInt64}}`int64` | ||
{{- else if .IsFloat64}}`float64` | ||
{{- else if .IsInt}}`int` | ||
{{- else if .ArrayValue }}[]{{template "entity" .ArrayValue}} | ||
{{- else if .MapValue }}map[string]{{template "entity" .MapValue}} | ||
{{- else}}[{{.Package.Name}}.{{.PascalName}}](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/{{.Package.Name}}#{{.PascalName}}) | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.