mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 03:08:25 +00:00 
			
		
		
		
	Add condition to rendering of schema change
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user