Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/classify-issue-severity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading