Skip to content

Commit 860c633

Browse files
authored
fix: github action (anomalyco#3223)
1 parent 4a7551e commit 860c633

File tree

4 files changed

+1129
-180
lines changed

4 files changed

+1129
-180
lines changed

.github/workflows/opencode.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ jobs:
88
opencode:
99
if: |
1010
contains(github.event.comment.body, ' /oc') ||
11-
contains(github.event.comment.body, ' /opencode')
11+
startsWith(github.event.comment.body, '/oc') ||
12+
contains(github.event.comment.body, ' /opencode') ||
13+
startsWith(github.event.comment.body, '/opencode')
1214
runs-on: ubuntu-latest
1315
permissions:
16+
contents: write
17+
pull-requests: write
18+
issues: write
1419
id-token: write
15-
contents: read
16-
pull-requests: read
17-
issues: read
1820
steps:
1921
- name: Checkout repository
2022
uses: actions/checkout@v4
@@ -24,4 +26,4 @@ jobs:
2426
env:
2527
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
2628
with:
27-
model: opencode/sonic
29+
model: opencode/kimi-k2

bun.lock

Lines changed: 65 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencode/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@
3333
"@opencode-ai/script": "workspace:*"
3434
},
3535
"dependencies": {
36+
"@actions/core": "1.11.1",
37+
"@actions/github": "6.0.1",
3638
"@clack/prompts": "1.0.0-alpha.1",
3739
"@hono/standard-validator": "0.1.5",
3840
"@hono/zod-validator": "catalog:",
3941
"@modelcontextprotocol/sdk": "1.15.1",
42+
"@octokit/graphql": "9.0.2",
43+
"@octokit/rest": "22.0.0",
4044
"@openauthjs/openauth": "catalog:",
4145
"@opencode-ai/plugin": "workspace:*",
4246
"@opencode-ai/script": "workspace:*",

0 commit comments

Comments
 (0)