escape ampersand (#6900)

This commit is contained in:
tooomm 2026-05-21 22:02:09 +02:00 committed by GitHub
parent 491d1c9187
commit 03d54265fe
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}"