Skip to content

Commit fb17bda

Browse files
committed
fix(release): Correctly format multi-line commit messages
1 parent a0cc392 commit fb17bda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate_release_notes.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ fi
7373
OTHER_COMMITS=$(grep -v -e "^feat:" -e "^fix:" -e "^hotfix:" "$TMP_LOG" || true)
7474
if [ -n "$OTHER_COMMITS" ]; then
7575
echo "### $CHORE Other Changes"
76-
echo "$OTHER_COMMITS" | sed 's/^/* /'
76+
# Format multi-line commit messages correctly.
77+
# The first line of a commit gets a bullet, subsequent lines are indented.
78+
echo "$OTHER_COMMITS" | awk 'BEGIN{first=1} /^$/{first=1; next} {if(first){print "* " $0; first=0} else {print " " $0}}'
7779
echo ""
7880
fi

0 commit comments

Comments
 (0)