Skip to content

Commit b588c3a

Browse files
authored
Update draft-release-notes (#87)
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)
1 parent 24d20ce commit b588c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/draft-release-notes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ fi
1818

1919
echo "## Changes" | tee -a "${RELEASE_NOTES}"
2020
for change in $(git rev-list $LAST_RELEASE_HASH..HEAD); do
21-
one_line_msg=$(git --no-pager log --pretty='%s (thanks to %an)' "${change}" -n1 | sed 's/^\[.*\]//' | xargs)
21+
one_line_msg=$(git --no-pager log --pretty='%s (thanks to %an)' "${change}" -n1 | sed 's/^\[.*\]//')
2222
echo " - ${one_line_msg}" | tee -a "${RELEASE_NOTES}"
2323
done
2424

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

0 commit comments

Comments
 (0)