From 60386ae9acbba21b6baf002d9bec048af5336a46 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 10 Dec 2024 18:30:44 +0100 Subject: [PATCH 1/3] Add a prompt to signal a schema change in the db --- .changie.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.changie.yaml b/.changie.yaml index 0145062f8..ef75bb959 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -7,15 +7,28 @@ versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}' kindFormat: '### {{.Kind}}' # Note: it is possible to add a `.custom.Long` text manually into the yaml file produced by `changie new`. This will add a long description. changeFormat: >- - * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{.Body}} {{ if and (.Custom.Long) (not (eq .Custom.Long "")) }} + * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{ .Body }} + + **Schema Change**: {{ .Custom.SchemaChange }} + + {{ if and (.Custom.Long) (not (eq .Custom.Long "")) }}{{ .Custom.Long }}{{ end }} - {{ .Custom.Long }}{{ end }} custom: + - key: SchemaChange + label: Is a schema change required? + optional: false + type: enum + enumOptions: + - "no schema change" + - "add columns or tables" + - "drop or rename table or columns, or enforce new constraint that must be manually fixed" + - key: Issue label: Issue number (on chill-bundles repository) (optional) optional: true type: int minInt: 1 + body: # allow multiline messages block: true From 0a53a9a9d162ab6feda581e9779e8e0acb3354cb Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 10 Dec 2024 18:30:44 +0100 Subject: [PATCH 2/3] Add a prompt to signal a schema change in the db --- .changie.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.changie.yaml b/.changie.yaml index 0145062f8..ef75bb959 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -7,15 +7,28 @@ versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}' kindFormat: '### {{.Kind}}' # Note: it is possible to add a `.custom.Long` text manually into the yaml file produced by `changie new`. This will add a long description. changeFormat: >- - * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{.Body}} {{ if and (.Custom.Long) (not (eq .Custom.Long "")) }} + * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{ .Body }} + + **Schema Change**: {{ .Custom.SchemaChange }} + + {{ if and (.Custom.Long) (not (eq .Custom.Long "")) }}{{ .Custom.Long }}{{ end }} - {{ .Custom.Long }}{{ end }} custom: + - key: SchemaChange + label: Is a schema change required? + optional: false + type: enum + enumOptions: + - "no schema change" + - "add columns or tables" + - "drop or rename table or columns, or enforce new constraint that must be manually fixed" + - key: Issue label: Issue number (on chill-bundles repository) (optional) optional: true type: int minInt: 1 + body: # allow multiline messages block: true From 0cdd9184a3a267a5d6814b14ab1f0b95871858d2 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 14 Jan 2025 16:10:58 +0100 Subject: [PATCH 3/3] Add condition to rendering of schema change --- .changie.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.changie.yaml b/.changie.yaml index ef75bb959..49a885a2e 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -7,9 +7,10 @@ versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}' kindFormat: '### {{.Kind}}' # Note: it is possible to add a `.custom.Long` text manually into the yaml file produced by `changie new`. This will add a long description. changeFormat: >- - * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{ .Body }} + * {{ if not (eq .Custom.Issue "") }}([#{{ .Custom.Issue }}](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/{{ .Custom.Issue }})) {{ end }}{{ .Body }} {{ if and .Custom.SchemaChange (ne .Custom.SchemaChange "No schema change") }} - **Schema Change**: {{ .Custom.SchemaChange }} + **Schema Change**: {{ .Custom.SchemaChange }} + {{- end -}} {{ if and (.Custom.Long) (not (eq .Custom.Long "")) }}{{ .Custom.Long }}{{ end }} @@ -19,9 +20,9 @@ custom: optional: false type: enum enumOptions: - - "no schema change" - - "add columns or tables" - - "drop or rename table or columns, or enforce new constraint that must be manually fixed" + - "No schema change" + - "Add columns or tables" + - "Drop or rename table or columns, or enforce new constraint that must be manually fixed" - key: Issue label: Issue number (on chill-bundles repository) (optional)