Skip to content

Commit

Permalink
add changlog tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Rockman committed Jun 13, 2021
1 parent 85f1399 commit bcdffb8
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{ if .Versions -}}
<a name="unreleased"></a>
## [Unreleased]

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .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 .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
- {{ .Revert.Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
27 changes: 27 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/OpsLevel/helm-charts
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE
22 changes: 22 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<a name="unreleased"></a>
## [Unreleased]

### Feature
- bump kubernetes-sync to v0.3.1-beta.1


<a name="kubernetes-sync-0.2.2"></a>
## [kubernetes-sync-0.2.2] - 2021-06-10
### Docs
- add upgrade instructions to the readme


<a name="kubernetes-sync-0.2.1"></a>
## [kubernetes-sync-0.2.1] - 2021-05-30

<a name="opslevel-sync-0.1.0"></a>
## opslevel-sync-0.1.0 - 2021-05-30

[Unreleased]: https://github.com/OpsLevel/helm-charts/compare/kubernetes-sync-0.2.2...HEAD
[kubernetes-sync-0.2.2]: https://github.com/OpsLevel/helm-charts/compare/kubernetes-sync-0.2.1...kubernetes-sync-0.2.2
[kubernetes-sync-0.2.1]: https://github.com/OpsLevel/helm-charts/compare/opslevel-sync-0.1.0...kubernetes-sync-0.2.1

0 comments on commit bcdffb8

Please sign in to comment.