Skip to content

Commit 5fe65b9

Browse files
committed
Add the opencode GitHub Actions
1 parent a6403eb commit 5fe65b9

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: opencode
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
opencode:
9+
if: |
10+
contains(github.event.comment.body, ' /oc') ||
11+
startsWith(github.event.comment.body, '/oc') ||
12+
contains(github.event.comment.body, ' /opencode') ||
13+
startsWith(github.event.comment.body, '/opencode')
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
22+
- name: Run opencode
23+
uses: sst/opencode/github@latest
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
model: github-copilot/gpt-4.1

0 commit comments

Comments
 (0)