mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-25 07:30:38 +00:00
refactor: change version header from 1 to 2
This commit is contained in:
parent
e39b2381c1
commit
a23629d0d5
@ -16,17 +16,17 @@ type releaseNoteTemplate struct {
|
|||||||
BreakingChanges []string
|
BreakingChanges []string
|
||||||
}
|
}
|
||||||
|
|
||||||
const markdownTemplate = `# v{{.Version}} ({{.Date}})
|
const markdownTemplate = `## v{{.Version}} ({{.Date}})
|
||||||
|
|
||||||
{{if .Sections.feat}}## {{.Sections.feat.Name}}
|
{{if .Sections.feat}}### {{.Sections.feat.Name}}
|
||||||
{{range $k,$v := .Sections.feat.Items}}
|
{{range $k,$v := .Sections.feat.Items}}
|
||||||
- {{if $v.Scope}}**{{$v.Scope}}:** {{end}}{{$v.Subject}} ({{$v.Hash}}) {{if $v.Metadata.issueid}}({{$v.Metadata.issueid}}){{end}}{{end}}{{end}}
|
- {{if $v.Scope}}**{{$v.Scope}}:** {{end}}{{$v.Subject}} ({{$v.Hash}}) {{if $v.Metadata.issueid}}({{$v.Metadata.issueid}}){{end}}{{end}}{{end}}
|
||||||
|
|
||||||
{{if .Sections.fix}}## {{.Sections.fix.Name}}
|
{{if .Sections.fix}}### {{.Sections.fix.Name}}
|
||||||
{{range $k,$v := .Sections.fix.Items}}
|
{{range $k,$v := .Sections.fix.Items}}
|
||||||
- {{if $v.Scope}}**{{$v.Scope}}:** {{end}}{{$v.Subject}} ({{$v.Hash}}) {{if $v.Metadata.issueid}}({{$v.Metadata.issueid}}){{end}}{{end}}{{end}}
|
- {{if $v.Scope}}**{{$v.Scope}}:** {{end}}{{$v.Subject}} ({{$v.Hash}}) {{if $v.Metadata.issueid}}({{$v.Metadata.issueid}}){{end}}{{end}}{{end}}
|
||||||
|
|
||||||
{{if .BreakingChanges}}## Breaking Changes
|
{{if .BreakingChanges}}### Breaking Changes
|
||||||
{{range $k,$v := .BreakingChanges}}
|
{{range $k,$v := .BreakingChanges}}
|
||||||
- {{$v}}{{end}}
|
- {{$v}}{{end}}
|
||||||
{{end}}`
|
{{end}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user