Added release notes to gs-release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-01-19 11:18:11 +00:00
parent 4265bf76ce
commit dc6bf17452
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -43,6 +43,10 @@ VERSION_PATCH=${VERSION_PARTS[2]}
echo "The latest released version is ${CURRENT_TAG}" echo "The latest released version is ${CURRENT_TAG}"
echo "" 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 if [[ "$SEMVER" == "" ]]; then
printf "What semver release level? (patch, minor or major): " printf "What semver release level? (patch, minor or major): "
read SEMVER read SEMVER