escape ampersand

This commit is contained in:
tooomm 2026-05-17 12:19:49 +02:00 committed by GitHub
parent 059eeebe89
commit 573dc82cb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,6 +89,8 @@ else
echo "'$previous' to '$TAG' ($count commits)"
# --> is the markdown comment escape sequence, emojis are way better
generated_list="${generated_list//-->/→}"
# Escape & to preserve it from commit message into markdown output
generated_list="${generated_list//&/\\&}"
body="${body//--REPLACE-WITH-GENERATED-LIST--/$generated_list}"
body="${body//--REPLACE-WITH-COMMIT-COUNT--/$count}"
body="${body//--REPLACE-WITH-PREVIOUS-RELEASE-TAG--/$previous}"