remove script to handle changelog release

pull/21719/head
jm96441n 2024-09-12 12:07:54 -04:00
parent e7993e328b
commit f235582563
2 changed files with 1 additions and 27 deletions

View File

@ -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
@$(SHELL) $(CURDIR)/build-support/scripts/gen-changelog.sh
##@ Help
# The help target prints out all targets with their descriptions organized

View File

@ -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)