aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-05-25 22:14:09 -0700
committerMax Resnick <max@ofmax.li>2025-05-25 22:14:09 -0700
commit2ae5f88427767d9a48fc64e540bf35988ce69b46 (patch)
treef899c6e02554b3b416f2786de58c3e567acbb61e
parentf7b361d6ae21f6d3bd32a83de80733047b60cdac (diff)
downloadgo-bumpver-2ae5f88427767d9a48fc64e540bf35988ce69b46.tar.gz
feat: add git change log to repo
-rwxr-xr-x.ghglog/CHANGELOG.tpl.md12
-rw-r--r--.ghglog/bk.tpl32
-rwxr-xr-x.ghglog/config.yml27
3 files changed, 71 insertions, 0 deletions
diff --git a/.ghglog/CHANGELOG.tpl.md b/.ghglog/CHANGELOG.tpl.md
new file mode 100755
index 0000000..27f4fca
--- /dev/null
+++ b/.ghglog/CHANGELOG.tpl.md
@@ -0,0 +1,12 @@
+{{ if .Versions -}}
+{{ range .Versions }}
+## {{ .Tag.Name }} - {{ datetime "2006-01-02" .Tag.Date }}
+
+{{ range .CommitGroups -}}
+### {{ .Title }}
+{{ range .Commits -}}
+- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
diff --git a/.ghglog/bk.tpl b/.ghglog/bk.tpl
new file mode 100644
index 0000000..d438ac1
--- /dev/null
+++ b/.ghglog/bk.tpl
@@ -0,0 +1,32 @@
+
+{{ if .Versions -}}
+## Unreleased
+
+{{ if .Unreleased.CommitGroups -}}
+{{ range .Unreleased.CommitGroups -}}
+### {{ .Title }}
+{{ range .Commits -}}
+- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
+
+{{ range .Versions }}
+## {{ .Tag.Name }} - {{ 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 -}}
diff --git a/.ghglog/config.yml b/.ghglog/config.yml
new file mode 100755
index 0000000..5b772c3
--- /dev/null
+++ b/.ghglog/config.yml
@@ -0,0 +1,27 @@
+style: none
+template: CHANGELOG.tpl.md
+info:
+ title: CHANGELOG
+ repository_url: https://git.ofmax.li/go-bumpver
+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 \ No newline at end of file