aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xauto-changelog.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/auto-changelog.sh b/auto-changelog.sh
index 117be092d..b986c4757 100755
--- a/auto-changelog.sh
+++ b/auto-changelog.sh
@@ -17,8 +17,7 @@ while read -r line; do
BODY=$(echo $line | sed -E 's/(.*):{2}(.*)/\2/')
fi
# add entry to CHANGELOG
- sed -i'' -e "/## Current Develop Branch/a \
- - [#$PR]($URL/pull/$PR): $BODY
- " CHANGELOG.md;
+ sed -i'' -e '/## Current Develop Branch/a\
+- [#'"$PR"']('"$URL"'/pull/'"$PR"'): '"$BODY"''$'\n' CHANGELOG.md;
done <<< "$LOG"
echo 'CHANGELOG updated'