Skip to content

Commit 7a2d3cb

Browse files
zclllyybbmorningman
authored andcommitted
[CI](workflow) Switch code review model to GPT-5.4 and add suggested changes guidance (#61958)
- Change opencode review model from claude-opus-4.6 to gpt-5.4 - Add instructions for using GitHub suggested changes blocks in inline comments - Clarify when to prefer suggested changes (small, self-contained fixes) vs normal explanations (broad/architectural issues)
1 parent a94a7c4 commit 7a2d3cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/opencode-review.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ jobs:
9292
- After completing the review, you MUST provide a final summary opinion based on the rules defined in AGENTS.md and the code-review skill. The summary must include conclusions for each applicable critical checkpoint.
9393
- If no issues to report, submit a short summary comment saying no issues found using: gh pr comment PLACEHOLDER_PR_NUMBER --body "<summary>"
9494
- If issues found, submit a review with inline comments plus a comprehensive summary body. Use GitHub Reviews API to ensure comments are inline:
95+
- Inline comment bodies may include GitHub suggested changes blocks when you can propose a precise patch.
96+
- Prefer suggested changes for small, self-contained fixes (for example typos, trivial refactors, or narrowly scoped code corrections).
97+
- Do not force suggested changes for broad, architectural, or multi-file issues; explain those normally.
9598
- Build a JSON array of comments like: [{ "path": "<file>", "position": <diff_position>, "body": "..." }]
9699
- Submit via: gh api repos/PLACEHOLDER_REPO/pulls/PLACEHOLDER_PR_NUMBER/reviews --input <json_file>
97100
- The JSON file should contain: {"event":"COMMENT","body":"<summary>","comments":[...]}
@@ -117,7 +120,7 @@ jobs:
117120
PROMPT=$(cat /tmp/review_prompt.txt)
118121
119122
set +e
120-
opencode run "$PROMPT" -m "github-copilot/claude-opus-4.6" 2>&1 | tee /tmp/opencode-review.log
123+
opencode run "$PROMPT" -m "github-copilot/gpt-5.4" 2>&1 | tee /tmp/opencode-review.log
121124
status=${PIPESTATUS[0]}
122125
set -e
123126

0 commit comments

Comments
 (0)