Skip to content

Commit

Permalink
fetch acutal commit id when generate release note (#8017)
Browse files Browse the repository at this point in the history
Co-authored-by: MartinForReal <fanshangxiang@gmail.com>
  • Loading branch information
1 parent 44ee50a commit e9b29a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/generate-release-note.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit e9b29a4

Please sign in to comment.