Skip to content

Commit

Permalink
docs(changelog): renew CHANGELOG form
Browse files Browse the repository at this point in the history
- renew CHANGELOG.md form
- remove CHANGELOG-LINK.md
- add changelog generator
  • Loading branch information
Yongwoo Lee committed May 26, 2021
1 parent efa8e36 commit 6bb6c0d
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 797 deletions.
23 changes: 23 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

{{ range .Versions }}
## {{ if .Tag.Previous }}[[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }})]{{ else }}[{{ .Tag.Name }}]{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}

{{ range .CommitGroups -}}
### {{ .Title }}

{{ range .Commits -}}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}

{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
31 changes: 31 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/line/cosmwasm
options:
tag_filter_pattern: '^v\d+\.\d+\.\d+-\d+\.\d+\.\d+'
commits:
filters:
Type:
- feat
- fix
- perf
- refactor
- build
commit_groups:
title_maps:
feat: Features
fix: Fixes
perf: Improvements
refactor: Code Refactoring
build: Changes
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
28 changes: 0 additions & 28 deletions CHANGELOG-LINK.md

This file was deleted.

Loading

0 comments on commit 6bb6c0d

Please sign in to comment.