Skip to content

Commit

Permalink
build: rework changelog to be simple, but hopefully non-failing
Browse files Browse the repository at this point in the history
  • Loading branch information
deweysasser committed Nov 9, 2022
1 parent 146be88 commit ca88614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 70 deletions.
38 changes: 0 additions & 38 deletions .chglog/CHANGELOG.tpl.md

This file was deleted.

28 changes: 0 additions & 28 deletions .chglog/config.yml

This file was deleted.

10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ test:
vet:
go vet ./...


changelog: CHANGELOG.md
CHANGELOG.md: .chglog/config.yml
git chglog $(LAST_RELEASE) >$@

.chglog/config.yml: go.mod
sed -i.bak -e "s|repository_url:.*|repository_url: $(REPO)|" $@
CHANGELOG.md: LAST=$(shell git tag --sort=-version:refname | tail -n -1 | head -n 1)
CHANGELOG.md: TOP=$(shell git tag --sort=-version:refname | head -n 1)
CHANGELOG.md:
(printf "# "; git tag -l -n 50 $(TOP); echo) > $@
git log --pretty="* %f (%h)" $(LAST).. >> $@

hooks: .git/hooks/pre-commit

Expand Down

0 comments on commit ca88614

Please sign in to comment.