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

Commit

Permalink
hack: a bit more automated release note generation (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu authored Oct 26, 2018
1 parent 3bac739 commit d7e327d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,4 @@ publish-docs: generate-docs

.PHONY: relnote
relnote:
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/google/go-github/github
go run hack/relnote.go
@hack/relnote
7 changes: 7 additions & 0 deletions hack/relnote
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/google/go-github/github

VERSION=$(hack/version) go run hack/relnote.go
6 changes: 6 additions & 0 deletions hack/version
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

COMMIT=$(git rev-parse HEAD)
TAG=$(git describe --exact-match --abbrev=0 --tags "${COMMIT}" 2> /dev/null || true)

echo "${TAG}"

0 comments on commit d7e327d

Please sign in to comment.