Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit bcbb4a5

Browse files
author
Carson Anderson
committed
Add release-notes makefile target
1 parent 5a20d5b commit bcbb4a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
CUR_TAG ?= $(shell git describe --abbrev=0 --tags 2>/dev/null)
2+
PREV_TAG ?= $(shell git describe --abbrev=0 --tags $(CUR_TAG)^)
3+
14
VERSION ?= $(shell echo $${BRANCH_NAME:-local} | sed s/[^a-zA-Z0-9_-]/_/)_$(shell git describe --always --dirty)
25
IMAGE ?= domoinc/kube-valet
36

@@ -85,3 +88,7 @@ test-customresources:
8588

8689
@echo "All custom resource client test binaries compiled!"
8790

91+
release-notes:
92+
@echo "## Changes since $(PREV_TAG)"
93+
@git log --no-merges --format='%s' $(PREV_TAG)..$(CUR_TAG) | sed 's/^/ - /'
94+

0 commit comments

Comments
 (0)