Skip to content

Commit 543dbe7

Browse files
committed
ci: smart oc
1 parent 54569b5 commit 543dbe7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,29 @@ jobs:
3232
OPENCODE_PERMISSION: '{"bash": "deny"}'
3333
with:
3434
model: opencode/claude-haiku-4-5
35+
36+
opencode-smart:
37+
if: |
38+
contains(github.event.comment.body, ' /soc') ||
39+
startsWith(github.event.comment.body, '/soc') ||
40+
contains(github.event.comment.body, ' /smart-opencode') ||
41+
startsWith(github.event.comment.body, '/smart-opencode')
42+
runs-on: blacksmith-4vcpu-ubuntu-2404
43+
permissions:
44+
id-token: write
45+
contents: read
46+
pull-requests: read
47+
issues: read
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@v4
51+
52+
- uses: ./.github/actions/setup-bun
53+
54+
- name: Run opencode
55+
uses: sst/opencode/github@latest
56+
env:
57+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
58+
OPENCODE_PERMISSION: '{"bash": "deny"}'
59+
with:
60+
model: opencode/claude-opus-4-5

0 commit comments

Comments
 (0)