From 25f19e03c80f6211ef4a3b6e0df9c89633b0834d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 13 Jul 2025 12:43:10 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20JavaScript=20syntax=20in?= =?UTF-8?q?=20workflow=20by=20using=20proper=20string=20concatenation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced mixed template literals with clean string concatenation to avoid YAML/JS syntax conflicts. All YAML validation now passes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/changelog-v3.yml | 35 ++++++++++++------------------ 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/changelog-v3.yml b/.github/workflows/changelog-v3.yml index 118970b0c..688959b9e 100644 --- a/.github/workflows/changelog-v3.yml +++ b/.github/workflows/changelog-v3.yml @@ -184,27 +184,20 @@ jobs: fixedContent = 'Error reading fixed changelog content'; } - message = `## ⚠️ Changelog Validation Issue - -@` + author + ` Your PR contains changelog entries that were added to already-released versions. These need to be moved to the \\`[Unreleased]\\` section. - -` + (committed === 'true' ? - '✅ **Auto-fix applied**: The changes have been automatically committed to this PR.' : - '❌ **Manual fix required**: Please apply the changes shown below manually.') + ` - -
-📝 Click to see the corrected changelog content - -\`\`\`mdx -${fixedContent} -\`\`\` - -
- -**What happened?** -The validation script detected that you added changelog entries to a version section that has already been released (like \\`v3.0.0-alpha.10\\`). All new entries should go in the \\`[Unreleased]\\` section under the appropriate category (\\`### Added\\`, \\`### Fixed\\`, etc.). - -` + (committed !== 'true' ? '**Action needed:** Please copy the corrected content from above and replace your changelog file.' : ''); + message = '## ⚠️ Changelog Validation Issue\\n\\n' + + '@' + author + ' Your PR contains changelog entries that were added to already-released versions. These need to be moved to the `[Unreleased]` section.\\n\\n' + + (committed === 'true' ? + '✅ **Auto-fix applied**: The changes have been automatically committed to this PR.' : + '❌ **Manual fix required**: Please apply the changes shown below manually.') + '\\n\\n' + + '
\\n' + + '📝 Click to see the corrected changelog content\\n\\n' + + '```mdx\\n' + + fixedContent + + '\\n```\\n\\n' + + '
\\n\\n' + + '**What happened?** \\n' + + 'The validation script detected that you added changelog entries to a version section that has already been released (like `v3.0.0-alpha.10`). All new entries should go in the `[Unreleased]` section under the appropriate category (`### Added`, `### Fixed`, etc.).\\n\\n' + + (committed !== 'true' ? '**Action needed:** Please copy the corrected content from above and replace your changelog file.' : ''); } if (message) {