mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
## Summary
Fixes the `SyntaxError: Unexpected identifier 'gemini'` error in the
cherry-pick documentation suggestions workflow.
## Problem
The 'Post suggestions as PR comment' step was directly interpolating
markdown content into a JavaScript template literal:
```javascript
const suggestions = `${{ steps.analyze.outputs.suggestions }}`;
```
When the suggestions contained backticks, `${}` sequences, or other
special characters (like the `gemini-3.1-pro-preview` model name in
markdown code blocks), it broke the JavaScript syntax.
## Solution
Write suggestions to a file in `$RUNNER_TEMP` and read it using
`fs.readFileSync()` in the script step. This avoids all GitHub Actions
template interpolation and JavaScript string parsing issues.
## Testing
This should fix the failed run:
https://github.com/zed-industries/zed/actions/runs/22194396124/job/64190762087
Release Notes:
- N/A
|
||
|---|---|---|
| .. | ||
| add_commented_closed_issue_to_project.yml | ||
| after_release.yml | ||
| autofix_pr.yml | ||
| background_agent_mvp.yml | ||
| bump_collab_staging.yml | ||
| bump_patch_version.yml | ||
| catch_blank_issues.yml | ||
| cherry_pick.yml | ||
| comment_on_potential_duplicate_issues.yml | ||
| community_champion_auto_labeler.yml | ||
| community_close_stale_issues.yml | ||
| community_update_all_top_ranking_issues.yml | ||
| community_update_weekly_top_ranking_issues.yml | ||
| compare_perf.yml | ||
| congrats.yml | ||
| danger.yml | ||
| deploy_cloudflare.yml | ||
| deploy_collab.yml | ||
| docs_suggestions.yml | ||
| extension_bump.yml | ||
| extension_tests.yml | ||
| extension_workflow_rollout.yml | ||
| good_first_issue_notifier.yml | ||
| pr_labeler.yml | ||
| publish_extension_cli.yml | ||
| randomized_tests.yml | ||
| release.yml | ||
| release_nightly.yml | ||
| run_agent_evals.yml | ||
| run_bundling.yml | ||
| run_cron_unit_evals.yml | ||
| run_tests.yml | ||
| run_unit_evals.yml | ||
| slack_notify_first_responders.yml | ||
| update_duplicate_magnets.yml | ||