From dc6bf17452a1ab44ca84451145925baf4cb6189a Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 19 Jan 2022 11:18:11 +0000 Subject: [PATCH] Added release notes to gs-release Signed-off-by: Marcus Noble --- home/.bin/gs-release | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.bin/gs-release b/home/.bin/gs-release index f5e039e..e68af4c 100755 --- a/home/.bin/gs-release +++ b/home/.bin/gs-release @@ -43,6 +43,10 @@ VERSION_PATCH=${VERSION_PARTS[2]} echo "The latest released version is ${CURRENT_TAG}" echo "" +echo "The release will include:" +sed -n "/^## \[Unreleased\]$/,/^## /p" CHANGELOG.md | tail -n +3 | tail -r | tail -n +2 | tail -r | sed "s/^/ /g" +echo "" + if [[ "$SEMVER" == "" ]]; then printf "What semver release level? (patch, minor or major): " read SEMVER