Skip to content

Commit cfd5710

Browse files
committed
feat(release): wrap commit lines in markdown code blocks instead of bullet lists (refs #68)
1 parent 7194a2f commit cfd5710

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release/generate-release-notes.zsh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,13 @@ EOF
305305
# Add commits for this issue - use zsh-compatible approach
306306
local commits_for_issue="${issue_commits[$issue_num]}"
307307

308+
echo '```' >> "$output_file"
308309
while IFS= read -r commit; do
309310
if [[ -n "$commit" ]]; then
310-
echo "- $commit" >> "$output_file"
311+
echo "$commit" >> "$output_file"
311312
fi
312313
done <<< "$commits_for_issue"
314+
echo '```' >> "$output_file"
313315
echo "" >> "$output_file"
314316
done
315317
fi
@@ -318,11 +320,13 @@ EOF
318320
if [[ ${#other_commits[@]} -gt 0 ]]; then
319321
echo "## Other Commits" >> "$output_file"
320322
echo "" >> "$output_file"
323+
echo '```' >> "$output_file"
321324
for commit in "${other_commits[@]}"; do
322325
if [[ -n "$commit" ]]; then
323-
echo "- $commit" >> "$output_file"
326+
echo "$commit" >> "$output_file"
324327
fi
325328
done
329+
echo '```' >> "$output_file"
326330
echo "" >> "$output_file"
327331
fi
328332

0 commit comments

Comments
 (0)