ci: Insist on structured output from claude-review workflow
In some cases claude is not outputting structured JSON at the end. Let's modify the prompt a bit to hopefully mitigate the issue.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
bbd707a882
commit
9e7a2793ad
@@ -313,7 +313,17 @@ jobs:
|
||||
in the appropriate severity section, after the existing items.
|
||||
- Do NOT reorder, reword, or remove existing items.
|
||||
|
||||
Return the final JSON object with your `comments` array and `summary` string.
|
||||
## CRITICAL: Return structured JSON output
|
||||
|
||||
Your FINAL action must be to return a JSON object matching the following
|
||||
JSON schema — do NOT end with a text summary or narrative. The `--json-schema`
|
||||
flag is set, so your last response must be the structured JSON result, not a
|
||||
text message.
|
||||
|
||||
```json
|
||||
${{ env.REVIEW_SCHEMA }}
|
||||
```
|
||||
|
||||
Do NOT attempt to post comments or use any MCP tools to modify the PR.
|
||||
|
||||
post:
|
||||
|
||||
Reference in New Issue
Block a user