-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Always Use Latest for Release Notes (#360)
- Loading branch information
Showing
4 changed files
with
51 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
# Copyright (c) 2024-2024 Deephaven Data Labs and Patent Pending | ||
|
||
# Generate release notes for the given tags/commits and make a release-notes.md | ||
# file in the working directory | ||
|
||
if [[ $# != 3 ]]; then | ||
echo "$0: Missing release version, release commit or previous version argument" | ||
exit 1 | ||
fi | ||
|
||
RELEASE_VERSION=$1 | ||
RELEASE_COMMIT=$2 | ||
PREVIOUS_VERSION=$3 | ||
RELEASE_TAG="v${RELEASE_VERSION}" | ||
PREVIOUS_TAG="v${PREVIOUS_VERSION}" | ||
RELEASE_NOTES=release-notes.md | ||
|
||
PREVIOUS_REF=${PREVIOUS_TAG} | ||
if [[ ${PREVIOUS_VERSION} != *"."*"."* ]]; then | ||
PREVIOUS_REF=${PREVIOUS_VERSION} | ||
fi | ||
|
||
# Make the Release Notes File | ||
echo "**What's Changed**" > ${RELEASE_NOTES} | ||
git log --oneline ${PREVIOUS_REF}...${RELEASE_COMMIT} | sed -e 's/^/- /' >> ${RELEASE_NOTES} | ||
echo "**Full Changelog**: https://github.com/deephaven/benchmark/compare/${PREVIOUS_TAG}...${RELEASE_TAG}" >> ${RELEASE_NOTES} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters