Skip to content

Commit 46ee2d7

Browse files
committed
Fix the opencode workflow
1 parent 0cf9522 commit 46ee2d7

2 files changed

Lines changed: 3 additions & 48 deletions

File tree

.github/actions/opencode/actions

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/opencode.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66

77
pull_request:
88

9-
pull_request_comment:
10-
types: [created]
11-
129
pull_request_review:
1310
types: [submitted]
1411

@@ -18,6 +15,7 @@ on:
1815
jobs:
1916
opencode:
2017
if: |
18+
github.event_name == 'pull_request' ||
2119
contains(github.event.comment.body, ' /oc') ||
2220
startsWith(github.event.comment.body, '/oc') ||
2321
contains(github.event.comment.body, ' /opencode') ||
@@ -31,18 +29,8 @@ jobs:
3129
uses: actions/checkout@v5
3230

3331
- name: Run opencode
34-
uses: sst/opencode/github@latest
35-
if: github.event_name != 'pull_request'
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
with:
39-
model: github-copilot/gpt-4.1
40-
41-
- name: Run opencode (for pull request)
42-
uses: ./github/actions/opencode
43-
if: github.event_name == 'pull_request'
32+
uses: sst/opencode/github@v0.10.3
4433
env:
4534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4635
with:
47-
model: github-copilot/gpt-4.1
48-
prompt: ${{ github.event.comment.body }}
36+
model: github-copilot/gpt-5-mini

0 commit comments

Comments
 (0)