Commit a817b9c
fix: correct jq parsing in classify-issue-severity workflow
The claude-code-action outputs an array of conversation messages, not
an object with a 'result' field. This was causing the error:
"jq: error: Cannot index array with string 'result'"
Updated the extraction logic to:
1. Parse the array of messages
2. Extract text content from message content blocks
3. Get the last text content (the assistant's response)
Fixes the error in workflow run:
https://github.com/coder/coder/actions/runs/20148520999/job/57835360033
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f45a179 commit a817b9c
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| |||
0 commit comments