mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct jq parsing in classify-issue-severity workflow (#21238)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
f45a179181
commit
8d1123e9ee
@@ -150,8 +150,14 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Extract the result from the execution file
|
||||
RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
|
||||
# The execution file is an array of conversation messages
|
||||
# Extract the last assistant message's text content
|
||||
RESULT=$(jq -r '.[].content[]? | select(.type == "text") | .text' < "$EXECUTION_FILE" | tail -n 1)
|
||||
|
||||
if [ -z "$RESULT" ]; then
|
||||
echo "No text content found in execution file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
{
|
||||
echo "result<<EOF"
|
||||
|
||||
Reference in New Issue
Block a user