Commit 9e1e644
fix(ci): resolve YAML parsing error in amber-auto-review workflow (#419)
## Summary
Fixes the CI failure affecting PR #417 and all future pull requests.
## Problem
The `amber-auto-review.yml` workflow was failing with:
```
SyntaxError: Unexpected end of input
```
**Root Cause**: The YAML parser was confused by the `---` markdown
separator on line 168, which appeared as a standalone line inside a
JavaScript template literal. YAML interprets `---` as a document
separator, causing the workflow file structure to become invalid.
## Solution
Converted the JavaScript template literal to string concatenation to
avoid having `---` appear as a standalone line in the YAML structure.
This prevents the YAML parser from misinterpreting markdown formatting
as YAML syntax.
### Changes
- Replaced multiline template literal (lines 166-189) with string
concatenation
- No functional changes - the generated markdown is identical
- Resolved yamllint syntax errors
## Testing
- ✅ Local YAML validation passes (yamllint)
- ✅ File structure validated
- ✅ Will be tested on this PR's CI run
## Impact
- Fixes PR #417 CI failure
- Prevents future failures on all PRs with Amber code review enabled
---
Closes #417 (CI failure)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0274ee7 commit 9e1e644
1 file changed
+14
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
190 | 180 | | |
191 | 181 | | |
192 | 182 | | |
| |||
0 commit comments