Skip to content

Commit

Permalink
Merge pull request #30 from embano1/issue-29
Browse files Browse the repository at this point in the history
chore: Add CHANGELOG configuration
  • Loading branch information
Michael Gasch authored May 7, 2021
2 parents 21797dc + 5764180 commit b479886
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[Release {{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }}

> Release Date: {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}

{{ range .Commits -}}
- {{ .Subject }}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
### ⏮ Reverts

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

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

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

### 📖 Commits

{{ range .Commits -}}
{{ if not .Merge -}}
{{ if not (contains .Header "Update CHANGELOG for" ) -}}
- {{ .Header }} [{{ .Hash.Short }}]
{{ end -}}
{{ end -}}
{{ end -}}

{{ end -}}
29 changes: 29 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/cloudevents/sdk-powershell
options:
commits:
filters:
Type:
- fix
- feat
- chore
commit_groups:
title_maps:
fix: 🐞 Fix
feat: 💫 Feature
chore: 🧹 Chore
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
refs:
actions:
- Closes
- Fixes
notes:
keywords:
- "BREAKING"

0 comments on commit b479886

Please sign in to comment.