fix(api): use en dash between hash and message to avoid '-' entity issues

This commit is contained in:
sebseb7
2025-08-04 10:35:28 +02:00
parent ab4964815c
commit 00d8e6c6e7

3
x.js
View File

@@ -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)})`;
}