Skip to content

Commit 6c7c461

Browse files
committed
release: update release note script
1 parent 3e58a69 commit 6c7c461

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hack/relnotes.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ fi
2424
# Generate list of changes based on RELNOTES in commits
2525
#
2626
echo "# Changes";
27-
RELNOTE_MERGES=$(git log ${PREV_RELEASE}...HEAD --grep RELNOTE --oneline --merges)
27+
RELNOTE_MERGES=$(git log ${PREV_RELEASE}...${CURRENT_TAG} --grep RELNOTE --oneline --merges)
2828
while read -r line; do
29+
if [ -z "$line" ]; then
30+
continue;
31+
fi
2932
COMMIT=$(echo "$line" | awk '{print $1}')
3033
git show "$COMMIT" | rg -o '^\s+([0-9]+):(.*?)\s+RELNOTE:(.*?)\s+```' --multiline-dotall --multiline --replace "* #\$1 \$3" || true;
3134
done <<< "$RELNOTE_MERGES"
@@ -43,7 +46,6 @@ git log ${PREV_RELEASE}...HEAD | rg -o "Co-authored-by: (.*?) <" --replace "\$1"
4346
echo
4447
echo "# Download"
4548
echo "* Download the binaries from the GitHub release page"
46-
echo "* Download the image from Docker Hub: \`zegl/kube-score:${CURRENT_TAG}\`"
47-
echo "* Download the image from Docker Hub with Helm or Kustomize pre-installed: \`zegl/kube-score:${CURRENT_TAG}-helm3\`, \`zegl/kube-score:${CURRENT_TAG}-helm\`, \`zegl/kube-score:${CURRENT_TAG}-kustomize\` "
49+
echo "* Download the image from Docker Hub: \`zegl/kube-score:${CURRENT_TAG}\` (Built for arm64 and amd64. Includes both Helm3 and Kustomize.)"
4850
echo "* Download from homebrew: \`brew install kube-score/tap/kube-score\`"
4951
echo "* Download with krew: \`kubectl krew install score\`"

0 commit comments

Comments
 (0)