From c3d8b3304622898fd33fdc488ee4a45ee03cfe54 Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Thu, 8 Feb 2024 13:35:33 +0100 Subject: [PATCH] add newlines under headlines --- hack/scripts/create_changelog.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/scripts/create_changelog.sh b/hack/scripts/create_changelog.sh index 1b9aa17..303cc36 100755 --- a/hack/scripts/create_changelog.sh +++ b/hack/scripts/create_changelog.sh @@ -25,6 +25,7 @@ fi # Generate the changelog in the CHANGELOG.md. echo "## What has changed" >>${CHANGELOG_FILE} +echo "" >>${CHANGELOG_FILE} # Iterate over all commits since the previous release. git log "${PREVIOUS_RELEASE}"..HEAD --pretty=tformat:"%h" --reverse | while read -r commit; do @@ -46,6 +47,7 @@ join -v2 \ # Add new contributors to the 'new contributors' section of the changelog. if [ -s ${NEW_CONTRIB} ]; then echo -e "\n## New contributors" >>${CHANGELOG_FILE} + echo "" >>${CHANGELOG_FILE} while read -r user; do REF_PR=$(grep "@${user}" ${CHANGELOG_FILE} | head -1 | grep -o " (#[0-9]\+)" || true) if [ -n "${REF_PR}" ]; then #reference found @@ -57,6 +59,3 @@ fi # Append link to the full-changelog this changelog. echo -e "\n**Full changelog**: https://github.com/$REPOSITORY/compare/${PREVIOUS_RELEASE}...${RELEASE_TAG}" >>${CHANGELOG_FILE} - -# Cleanup the NEW_CONTRIB file. -rm ${NEW_CONTRIB} || true