Skip to content

Commit

Permalink
fix draft-release-notes issue w/ single quotes (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 authored Jun 4, 2021
1 parent eac2feb commit 8d586c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/draft-release-notes
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ fi

echo "## Changes" | tee -a "${RELEASE_NOTES}"
for change in $(git rev-list $LAST_RELEASE_HASH..HEAD); do
one_line_msg=$(git --no-pager log --pretty='%s (thanks to %an)' "${change}" -n1 | sed 's/^\[.*\]//' | xargs)
one_line_msg=$(git --no-pager log --pretty='%s (thanks to %an)' "${change}" -n1 | sed 's/^\[.*\]//')
# render markdown links for cross-posting release notes
pr_num=$(echo $one_line_msg | grep -Eo '(#[0-9]*)' || [[ $? == 1 ]])
md_link="[$pr_num](https://github.com/aws/aws-node-termination-handler/pull/${pr_num:1})"
echo " - ${one_line_msg/\($pr_num\)/$md_link}" | tee -a "${RELEASE_NOTES}"
done

>&2 echo -e "\n\nRelease notes file: ${RELEASE_NOTES}"
>&2 echo -e "\n\nRelease notes file: ${RELEASE_NOTES}"

0 comments on commit 8d586c2

Please sign in to comment.