From e9b29a43f147b859fbbe31240d0e8ed83078a483 Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Sun, 12 Jan 2025 20:14:32 -0800 Subject: [PATCH] fetch acutal commit id when generate release note (#8017) Co-authored-by: MartinForReal --- hack/generate-release-note.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/generate-release-note.sh b/hack/generate-release-note.sh index cdf60acfe8..854c408e1b 100755 --- a/hack/generate-release-note.sh +++ b/hack/generate-release-note.sh @@ -31,7 +31,7 @@ generate() { TO_TAG=$2 BRANCH=$3 FROM_COMMIT=$(git rev-list --no-merges ${FROM_TAG}..${TO_TAG} | tail -1) # exclude the ${FROM_TAG} commit - TO_COMMIT=$(git rev-parse ${TO_TAG}) + TO_COMMIT=$(git rev-parse ${TO_TAG}^{commit}) echo "Generating release notes for ${FROM_TAG}..${TO_TAG} (${FROM_COMMIT}..${TO_COMMIT}) on branch ${BRANCH}"