Skip to content

Commit 49387a6

Browse files
author
Test User
committed
fix(ci): add timeout to prevent OpenCode review workflow hangs
Add 10-minute job timeout and clearer completion instruction to address known OpenCode issue where the action hangs instead of exiting after posting review comments. Refs: anomalyco/opencode#4506
1 parent 36c101d commit 49387a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/opencode-review.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
opencode-review:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 10 # Prevent hanging - kill after 10 min
1718
permissions:
1819
id-token: write
1920
contents: read
@@ -105,4 +106,5 @@ jobs:
105106
Use the repository's CLAUDE.md for guidance on style and conventions.
106107
Be constructive and helpful in your feedback.
107108
108-
Use `gh pr comment` to leave your review as a comment on the PR.
109+
IMPORTANT: Post exactly ONE comment using `gh pr comment`, then STOP.
110+
Do not attempt additional actions after posting your review.

0 commit comments

Comments
 (0)