generate esoui changelog from git logs

Daniel Pittman [08-19-18 - 15:25]
generate esoui changelog from git logs
Filename
.chglog/CHANGELOG.tpl.md
.chglog/config.yml
CHANGELOG.md
diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md
new file mode 100644
index 0000000..eee8f8e
--- /dev/null
+++ b/.chglog/CHANGELOG.tpl.md
@@ -0,0 +1,53 @@
+{{ if .Info.Title -}}
+{{ if .Info.RepositoryURL -}}
+# [{{.Info.Title}}][repo]
+[repo]: {{ .Info.RepositoryURL }}
+{{ else -}}
+# {{.Info.Title}}
+{{ end -}}
+{{ end -}}
+
+{{ if .Versions -}}
+{{ if .Unreleased.CommitGroups -}}
+## [Unreleased]
+{{ range .Unreleased.CommitGroups -}}
+{{ range .Commits -}}
+- {{ .Header -}}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
+
+{{ range .Versions }}
+{{ if .Tag.Previous -}}
+## [{{ .Tag.Name }}][diff-{{ .Tag.Name }}] - {{ datetime "2006-01-02" .Tag.Date }}
+{{ else -}}
+## {{ .Tag.Name }} - {{ datetime "2006-01-02" .Tag.Date }}
+{{ end -}}
+
+{{ range .CommitGroups -}}
+{{ range .Commits -}}
+- {{ .Header -}}
+{{ end }}
+{{ end -}}
+
+{{- if .NoteGroups -}}
+{{ range .NoteGroups -}}
+### {{ .Title }}
+{{ range .Notes }}
+{{ .Body }}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
+
+{{- if .Versions }}
+{{ if .Unreleased.CommitGroups -}}
+[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
+{{ end -}}
+{{ range .Versions -}}
+{{ if .Tag.Previous -}}
+[diff-{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
diff --git a/.chglog/config.yml b/.chglog/config.yml
new file mode 100644
index 0000000..6e94671
--- /dev/null
+++ b/.chglog/config.yml
@@ -0,0 +1,16 @@
+style: github
+template: CHANGELOG.tpl.md
+info:
+  title: SlippyCheeze's Read It Once
+  repository_url: https://github.com/slippycheeze/eso-SlippyCheezeReadItOnce
+options:
+  header:
+    pattern: "^(.*)$"
+    pattern_maps:
+      - Subject
+  commit_groups:
+    group_by: Subject
+  commit:
+    sort_by: Author.Date
+
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 51985ff..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Changes to SlippyCheeze's Read It Once
-
-## Version 2
-
-* Ensure that alerts are displayed every time a book is already read.
-* Use a much less significant dramatic, and better timed, sound for read books.
-* Allow overriding the addon by double-tap interact for a book.