diff --git a/x.js b/x.js index f238337..46a9455 100644 --- a/x.js +++ b/x.js @@ -236,7 +236,8 @@ function formatCommitMessage(payload) { // backticked hash must use code-escaper rules const hashInline = escapeInlineCode(shortHash); - commitsText += `\nšŸ”§ \`${hashInline}\` - ${escapedMessage}`; + // Replace raw hyphen with EN DASH between hash and message to avoid '-' entity errors + commitsText += `\nšŸ”§ \`${hashInline}\` – ${escapedMessage}`; if (commits.length > 1) { commitsText += ` (${escapeMdV2(author)})`; }