--- /dev/null
+{{ range .Versions }}
+## {{ .Tag.Name }} ({{ datetime "2006-01-02" .Tag.Date }})
+
+{{ range .CommitGroups -}}
+### {{ .Title }}
+
+{{ range .Commits -}}
+* {{ upperFirst .Type }}{{ if .Subject }} {{ .Subject }}{{ end }}.
+{{ end }}
+{{ end -}}
+
+{{- if .RevertCommits -}}
+### Reverts
+
+{{ range .RevertCommits -}}
+* {{ .Revert.Header }}
+{{ end }}
+{{ end -}}
+
+{{- if .MergeCommits -}}
+### Merges
+
+{{ range .MergeCommits -}}
+* {{ .Header }}
+{{ end }}
+{{ end -}}
+
+{{- if .NoteGroups -}}
+{{ range .NoteGroups -}}
+### {{ .Title }}
+
+{{ range .Notes }}
+{{ .Body }}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
--- /dev/null
+style: none
+template: CHANGELOG.tpl.md
+info:
+ title: ChangeLog
+ repository_url: "https://git.hut.sourcephile.fr/~julm/symantic-parser"
+options:
+ sort: "date"
+
+ commits:
+ sort_by: Type
+
+ commit_groups:
+ group_by: Scope
+ sort_by: Custom
+ title_order:
+ - iface
+ - doc
+ - impl
+ - build
+ title_maps:
+ build: Build
+ doc: Documentation
+ iface: Interface
+ impl: Implementation
+
+ header:
+ pattern: "^([\\w\\$\\.\\-\\*\\s]*)\\:\\s(\\w*)\\s*(.*)$"
+ pattern_maps:
+ - Scope
+ - Type
+ - Subject
+
+ notes:
+ keywords:
+ - BREAKING CHANGE
Upstream-Contact: Julien Moutinho <julm+symantic-parser@sourcephile.fr>
Source: https://git.code.sourcephile.fr/~julm/symantic-parser
-Files: *.nix *.lock cabal.project *.cabal *.md .envrc .gitignore .hlint.yaml Makefile
+Files: *.nix *.lock cabal.project *.cabal *.md .chglog/* .envrc .gitignore .hlint.yaml Makefile
Copyright: Julien Moutinho <julm+symantic-parser@sourcephile.fr>
License: CC0-1.0
doc:
cabal haddock --haddock-css ocean --haddock-hyperlink-source
-tag:
- git tag --merged | grep -Fqx "$(package)-$(version)" || \
- git tag -f -s -m "$(package) v$(version)" $(package)-$(version)
+.PHONY: ChangeLog.md
+ChangeLog.md:
+ ! git tag --merged | grep -Fqx $(package)-$(version)
+ git diff --exit-code
+ git tag -f $(package)-$(version)
+ git-chglog --output $@.new $(package)-$(version)
+ touch $@
+ cat $@ >>$@.new
+ mv -f $@.new $@
+ git tag -d $(package)-$(version)
+ git add '$@'
+ git commit -m 'doc: update `$@`'
+tag: ChangeLog.md
+ git tag -s -m $(package)-$(version) $(package)-$(version)
tar:
git diff --exit-code
echo >>$@ '# BEGIN: generated hints'
hlint --find . | grep -- '- fixity:' | sort -u >>$@
echo >>$@ '# END: generated hints'
-
lint: .hlint.yaml
if hlint --quiet --report=hlint.html -XNoCPP $(HLINT_FLAGS) .; \
then rm -f hlint.html; \