From 5cfaaaaa9b7b8e5398e25b9912c6f41015494855 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sat, 11 Jan 2025 15:51:03 -0800 Subject: [PATCH] Ran Init - okay now maybe this will work. --- .chglog/CHANGELOG.tpl.md | 38 +++++++++++++++++++++++++++ .chglog/config.yml | 27 +++++++++++++++++++ .github/workflows/auto_change_log.yml | 2 +- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 .chglog/CHANGELOG.tpl.md create mode 100644 .chglog/config.yml diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md new file mode 100644 index 0000000..8af3f98 --- /dev/null +++ b/.chglog/CHANGELOG.tpl.md @@ -0,0 +1,38 @@ +{{ 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 -}} +* {{ .Subject }} +{{ end }} +{{ end -}} + +{{- if .RevertCommits -}} +### Reverts + +{{ range .RevertCommits -}} +* {{ .Revert.Header }} +{{ end }} +{{ end -}} + +{{- if .MergeCommits -}} +### Pull Requests + +{{ range .MergeCommits -}} +* {{ .Header }} +{{ end }} +{{ end -}} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +### {{ .Title }} + +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} \ No newline at end of file diff --git a/.chglog/config.yml b/.chglog/config.yml new file mode 100644 index 0000000..f35ed25 --- /dev/null +++ b/.chglog/config.yml @@ -0,0 +1,27 @@ +style: github +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://github.com/carlkidcrypto/ezsnmp +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: + - Subject + - Type + notes: + keywords: + - BREAKING CHANGE \ No newline at end of file diff --git a/.github/workflows/auto_change_log.yml b/.github/workflows/auto_change_log.yml index cf57561..e8671f2 100644 --- a/.github/workflows/auto_change_log.yml +++ b/.github/workflows/auto_change_log.yml @@ -31,7 +31,7 @@ jobs: id: generate run: | rm -f CHANGELOG.md - ./git-chglog -o CHANGELOG.md + ~/go/bin/git-chglog -o CHANGELOG.md if git diff --quiet CHANGELOG.md; then echo "changes=false" >> $GITHUB_OUTPUT else