Skip to content

Commit

Permalink
move sap-config in
Browse files Browse the repository at this point in the history
  • Loading branch information
treee111 committed Oct 19, 2021
1 parent 08d9e1b commit a0e5545
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 33 deletions.
28 changes: 7 additions & 21 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{{ if .Versions -}}
<a name="unreleased"></a>
## [Unreleased]
# Changelog
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ if .Versions -}}
A list of unreleased changes can be found [here]({{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD).
{{ end -}}

{{ range .Versions }}
Expand All @@ -18,7 +12,7 @@
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} [`{{ .Hash.Short }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }})
{{ end }}
{{ end -}}

Expand All @@ -29,13 +23,6 @@
{{ end }}
{{ end -}}

{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
- {{ .Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
Expand All @@ -47,10 +34,9 @@
{{ 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 -}}
{{ end -}}
28 changes: 16 additions & 12 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ info:
repository_url: https://github.com/treee111/wahooMapsCreator
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
filters:
Type:
- FEATURE
- FIX
- PERF
- BREAKING
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
title_maps:
FEATURE: Features
FIX: Bug Fixes
PERF: Performance Improvements
BREAKING: Breaking Changes
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern: "^\\[(\\w*)\\]\\s(?:([^\\:]*)\\:\\s)?(.*)$"
pattern_maps:
- Type
- Scope
- Subject
issues:
prefix:
- "#"
notes:
keywords:
- BREAKING CHANGE

0 comments on commit a0e5545

Please sign in to comment.