Skip to content

Commit

Permalink
Update draft-release-notes (#87)
Browse files Browse the repository at this point in the history
Same as aws/aws-node-termination-handler#449

Removed xargs pipe since it's unnecessary and causes issues when a commit message has an apostrophe (single quote)
  • Loading branch information
brycahta authored Jun 4, 2021
1 parent 24d20ce commit b588c3a
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,8 +18,8 @@ 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/^\[.*\]//')
echo " - ${one_line_msg}" | 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 b588c3a

Please sign in to comment.