Skip to content

Commit 6e9ad04

Browse files
authored
Merge pull request #36 from embano1/issue-35
2 parents c047c13 + 5b14f75 commit 6e9ad04

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,37 @@
88
### {{ .Title }}
99

1010
{{ range .Commits -}}
11-
- {{ .Subject }}
11+
- [{{ .Hash.Short }}]{{"\t"}}{{ .Subject }}{{ range .Refs }} (#{{ .Ref }}) {{ end }}
1212
{{ end }}
1313
{{ end -}}
1414

1515
{{- if .RevertCommits -}}
1616
### ⏮ Reverts
1717

1818
{{ range .RevertCommits -}}
19-
- {{ .Revert.Header }}
19+
- [{{ .Hash.Short }}]{{"\t"}}{{ .Revert.Header }}{{ range .Refs }} (#{{ .Ref }}) {{ end }}
2020
{{ end }}
2121
{{ end -}}
2222

23-
{{- if .NoteGroups -}}
24-
{{ range .NoteGroups -}}
25-
### ⚠️ {{ .Title }}
23+
### ⚠️ BREAKING
2624

27-
{{ range .Notes }}
28-
{{ .Body }}
25+
{{ range .Commits -}}
26+
{{ if .Notes -}}
27+
{{ if not .Merge -}}
28+
{{ if not (contains .Header "Update CHANGELOG for" ) -}}
29+
{{ .Subject }} [{{ .Hash.Short }}]:{{"\n"}}{{ range .Notes }}{{ .Body }}
2930
{{ end }}
3031
{{ end -}}
3132
{{ end -}}
33+
{{ end -}}
34+
{{ end -}}
3235

3336
### 📖 Commits
3437

3538
{{ range .Commits -}}
3639
{{ if not .Merge -}}
3740
{{ if not (contains .Header "Update CHANGELOG for" ) -}}
38-
- {{ .Header }} [{{ .Hash.Short }}]
41+
- [{{ .Hash.Short }}]{{"\t"}}{{ .Header }}{{ range .Refs }} (#{{ .Ref }}) {{ end }}
3942
{{ end -}}
4043
{{ end -}}
4144
{{ end -}}

0 commit comments

Comments
 (0)