-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: escape backticks in agent output for github-script #9403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
When agent output contains backticks (e.g., `baseBranch`), they break the JavaScript template literal syntax in the Update Check Run step, causing SyntaxError: Unexpected identifier. Fix by passing values through environment variables instead of direct GitHub Actions expression interpolation. This is a common pattern for handling dynamic content in github-script actions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
1 similar comment
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
|
✅ Review Complete Code Review SummaryTroubleshooting
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file

Summary
baseBranch)Update Check RunstepProblem
When the Continue agent output contains backticks, they break the JavaScript template literal in the
github-scriptaction:This causes:
SyntaxError: Unexpected identifier 'baseBranch'Solution
Pass values through environment variables instead of direct interpolation:
This is a standard pattern for handling dynamic content in
github-scriptactions.Test plan
🤖 Generated with Claude Code
Summary by cubic
Prevents SyntaxError in github-script when agent output includes backticks by passing values through environment variables instead of inline interpolation. Also ensures check run IDs are parsed correctly.
Written for commit 98d1420. Summary will update on new commits.
Continue Tasks
Powered by Continue