Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit d7e327d

Browse files
authored
hack: a bit more automated release note generation (#1476)
1 parent 3bac739 commit d7e327d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Makefile

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,4 @@ publish-docs: generate-docs
4848

4949
.PHONY: relnote
5050
relnote:
51-
go get golang.org/x/oauth2
52-
go get golang.org/x/net/context
53-
go get github.com/google/go-github/github
54-
go run hack/relnote.go
51+
@hack/relnote

hack/relnote

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
go get golang.org/x/oauth2
4+
go get golang.org/x/net/context
5+
go get github.com/google/go-github/github
6+
7+
VERSION=$(hack/version) go run hack/relnote.go

hack/version

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
COMMIT=$(git rev-parse HEAD)
4+
TAG=$(git describe --exact-match --abbrev=0 --tags "${COMMIT}" 2> /dev/null || true)
5+
6+
echo "${TAG}"

0 commit comments

Comments
 (0)