mirror of https://github.com/hashicorp/consul
remove script to handle changelog release
parent
e7993e328b
commit
f235582563
1
Makefile
1
Makefile
|
@ -626,6 +626,7 @@ envoy-regen: ## Regenerating envoy golden files
|
||||||
gen-changelog: ## Generate changelog entry for the current branch based on the currently open PR for that branch
|
gen-changelog: ## Generate changelog entry for the current branch based on the currently open PR for that branch
|
||||||
@$(SHELL) $(CURDIR)/build-support/scripts/gen-changelog.sh
|
@$(SHELL) $(CURDIR)/build-support/scripts/gen-changelog.sh
|
||||||
|
|
||||||
|
|
||||||
##@ Help
|
##@ Help
|
||||||
|
|
||||||
# The help target prints out all targets with their descriptions organized
|
# The help target prints out all targets with their descriptions organized
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
set -eo pipefail
|
|
||||||
|
|
||||||
curdir=$(pwd)
|
|
||||||
if [[ ! $curdir == *"enterprise"* ]]; then
|
|
||||||
echo "This script should be run from the enterprise directory."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
LAST_RELEASE_GIT_TAG="$1"
|
|
||||||
|
|
||||||
if [ -z "$LAST_RELEASE_GIT_TAG" ]; then
|
|
||||||
read -p "Enter the last release git tag (vX.Y.Z): " LAST_RELEASE_GIT_TAG
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$LAST_RELEASE_GIT_TAG" ]; then
|
|
||||||
echo "Last release git tag is required."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! $LAST_RELEASE_GIT_TAG == v* ]]; then
|
|
||||||
echo "Last release git tag should start with 'v'."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
go run github.com/hashicorp/go-changelog/cmd/changelog-build@latest -last-release ${LAST_RELEASE_GIT_TAG}+ent -entries-dir .changelog/ -changelog-template .changelog/changelog.tmpl -note-template .changelog/note.tmpl -this-release $(git rev-parse HEAD)
|
|
Loading…
Reference in New Issue