Skip to content

Commit

Permalink
add nicer newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Feb 8, 2024
1 parent c3d8b33 commit 49a68e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/scripts/create_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi

# Generate the changelog in the CHANGELOG.md.
echo "## What has changed" >>${CHANGELOG_FILE}
echo "" >>${CHANGELOG_FILE}
echo >>${CHANGELOG_FILE} # add newline

# Iterate over all commits since the previous release.
git log "${PREVIOUS_RELEASE}"..HEAD --pretty=tformat:"%h" --reverse | while read -r commit; do
Expand All @@ -47,7 +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}
echo >>${CHANGELOG_FILE} # add newline
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
Expand Down

0 comments on commit 49a68e8

Please sign in to comment.