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
fix: simplify JSON schema in classify-issue-severity workflow
The previous JSON schema was too complex with allOf conditionals,
which likely caused the claude-code-action to fail.

Changes:
1. Simplified JSON schema - removed allOf, if/then conditions, and
   enum constraints
2. Changed claude_args to multi-line format for better readability
   and to avoid potential escaping issues
3. Keep only required fields: status and reasoning
4. Make severity and next_steps optional (validated in later step)

The schema now matches the simpler patterns used in claude-code-action
test workflows, which should be more reliable.

Fixes workflow run: https://github.com/coder/coder/actions/runs/20149538756

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  • Loading branch information
david-fraley and claude committed Dec 11, 2025
commit 82b06bcc0b8aa652f03727ce088c747b46d3a1ad
3 changes: 2 additions & 1 deletion .github/workflows/classify-issue-severity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
uses: anthropics/claude-code-action@f0c8eb29807907de7f5412d04afceb5e24817127 # v1.0.23
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: --json-schema '{"type":"object","properties":{"status":{"type":"string","enum":["classified","insufficient_info"]},"severity":{"type":"string","enum":["s0","s1","s2","s3","s4"]},"reasoning":{"type":"string"},"next_steps":{"type":"array","items":{"type":"string"}}},"required":["status","reasoning"],"allOf":[{"if":{"properties":{"status":{"const":"classified"}}},"then":{"required":["severity"]}},{"if":{"properties":{"status":{"const":"insufficient_info"}}},"then":{"required":["next_steps"]}}]}'
claude_args: |
--json-schema '{"type":"object","properties":{"status":{"type":"string"},"severity":{"type":"string"},"reasoning":{"type":"string"},"next_steps":{"type":"array","items":{"type":"string"}}},"required":["status","reasoning"]}'
prompt: |
You are an expert software engineer triaging customer-reported issues for Coder, a cloud development environment platform.

Expand Down
Loading