mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
🔧 Fix JavaScript syntax in workflow by using proper string concatenation
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 <noreply@anthropic.com>
This commit is contained in:
parent
6486f9d9b2
commit
25f19e03c8
1 changed files with 14 additions and 21 deletions
35
.github/workflows/changelog-v3.yml
vendored
35
.github/workflows/changelog-v3.yml
vendored
|
|
@ -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.') + `
|
||||
|
||||
<details>
|
||||
<summary>📝 Click to see the corrected changelog content</summary>
|
||||
|
||||
\`\`\`mdx
|
||||
${fixedContent}
|
||||
\`\`\`
|
||||
|
||||
</details>
|
||||
|
||||
**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' +
|
||||
'<details>\\n' +
|
||||
'<summary>📝 Click to see the corrected changelog content</summary>\\n\\n' +
|
||||
'```mdx\\n' +
|
||||
fixedContent +
|
||||
'\\n```\\n\\n' +
|
||||
'</details>\\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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue