Skip to content

Conversation

@christian-byrne
Copy link
Contributor

Fixes syntax errors in the RFC discussion sync workflow that occur when PR titles or RFC content contain special characters like brackets, quotes, or apostrophes.

Problem: The sync workflow was embedding GitHub Actions expressions directly in JavaScript template literals, causing syntax errors when content contained special characters.

Solution: Use environment variables to pass all dynamic content, avoiding template literal conflicts.

This enables the sync workflow to handle any RFC content safely, including edge cases like:

  • Square brackets in PR titles: [feat] Add new feature
  • Apostrophes in content: GitHub's API
  • Any other special JavaScript characters

Testing: After merge, the existing test PR should successfully sync discussion content on future commits.

Uses environment variables instead of template literals to avoid conflicts with special characters in PR titles, RFC content, and other GitHub Actions expressions
@christian-byrne christian-byrne merged commit 9c4ef7f into main Jun 2, 2025
2 checks passed
@christian-byrne christian-byrne deleted the fix-sync-workflow-syntax-error branch June 2, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants