Skip to content

Commit

Permalink
maint/dev ~ reconfigure for git-changelog (from GH:rivy-go)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Dec 13, 2020
1 parent 8e211bb commit 4f96b41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
16 changes: 9 additions & 7 deletions .chglog/CHANGELOG.tpl.md → .changelog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{{ range .Commits }}{{ template "format-commit" . -}}{{ end -}}
{{ end -}}

<!-- markdownlint-disable heading-increment no-duplicate-heading no-inline-html -->
<!-- spellchecker:ignore () CICD Deno EditorConfig chglog gitattributes maint markdownlint rivy typeof -->

# CHANGELOG <br/> [{{ $.Info.Title }}]({{ $.Info.RepositoryURL }})
{{ if .Unreleased.CommitGroups }}{{/* <a name="unreleased"></a> */}}
## [Unreleased]
Expand All @@ -22,36 +25,35 @@
{{/* <a name="{{ .Tag.Name }}"></a> */}}
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} <small>({{ datetime "2006-01-02" .Tag.Date }})</small>
{{ if .CommitGroups -}}
{{ range .CommitGroups }}{{ if eq .Title "Features" }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{ range .CommitGroups }}{{ if eq .Title "Enhancements" }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{ range .CommitGroups }}{{ if eq .Title "Changes" }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{ range .CommitGroups }}{{ if eq .Title "Fixes" }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{ range .CommitGroups }}{{ if not (eq .Title "Features" "Enhancements" "Changes" "Fixes") }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{ range .CommitGroups }}{{ if not (eq .Title "Changes" "Enhancements" "Fixes") }}{{ $output = true }}{{ template "format-commit-group" . }}{{- end -}}{{- end -}}
{{- end -}}

{{ if .RevertCommits }}{{ $output = true }}
#### Reverts

{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end -}}
{{ end }}
{{ end -}}

{{ if .MergeCommits }}{{ $output = true }}
{{ if .MergeCommits -}}
#### Pull Requests

{{ range .MergeCommits -}}
* {{ .Header }}
{{ end -}}
{{ end }}
{{ end -}}

{{ if .NoteGroups -}}{{ $output = true }}
{{ if .NoteGroups -}}
{{ range .NoteGroups -}}
#### {{ .Title }}

{{ range .Notes }}
{{ .Body }}
{{ end -}}
{{ end }}
{{ end -}}
{{ end -}}

Expand Down
11 changes: 3 additions & 8 deletions .chglog/config.yml → .changelog/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# spell-checker:ignore bugfix maint
# spell-checker:ignore chglog
# spell-checker: ignore bugfix maint middot
info:
title: os-paths
repository_url: https://github.com/rivy/js.os-paths
title: xdg-app-paths
repository_url: https://github.com/rivy/js.xdg-app-paths
style: github
template: CHANGELOG.tpl.md
options:
Expand All @@ -16,7 +15,6 @@ options:
- maint
- perf
- refactor
# - style
- test
- update
# - version
Expand All @@ -30,9 +28,7 @@ options:
perf: perf
refactor: refactor
test: test
# style: style
update: update
# version: version
# aggregating types
add: change
added: change
Expand All @@ -55,7 +51,6 @@ options:
maint: Maintenance
perf: Enhancements
refactor: Refactoring
# style: Style Improvements
test: Test Improvements
update: Dependency Updates
# version: Version Changes
Expand Down

0 comments on commit 4f96b41

Please sign in to comment.