aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/opencode.yml
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-07-27 19:16:08 +0100
committerMohamedBassem <me@mbassem.com>2025-07-27 19:16:08 +0100
commit7bb7f18fbf8e374efde2fe28bacfc29157b9fa19 (patch)
tree85686575fea8ea4eebfec502e7f2ae996ec3b1c4 /.github/workflows/opencode.yml
parenta34331b5b9fd4555385571436a2eca1d2974aff9 (diff)
downloadkarakeep-7bb7f18fbf8e374efde2fe28bacfc29157b9fa19.tar.zst
chore: Add opencode agent
Diffstat (limited to '')
-rw-r--r--.github/workflows/opencode.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml
new file mode 100644
index 00000000..d7728415
--- /dev/null
+++ b/.github/workflows/opencode.yml
@@ -0,0 +1,29 @@
+name: opencode
+
+on:
+ issue_comment:
+ types: [created]
+
+jobs:
+ opencode:
+ if: |
+ github.actor == 'MohamedBassem' && (
+ contains(github.event.comment.body, '/oc') ||
+ contains(github.event.comment.body, '/opencode')
+ )
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Run opencode
+ uses: sst/opencode/github@latest
+ env:
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
+ with:
+ model: openrouter/moonshotai/kimi-k2