From 7bb7f18fbf8e374efde2fe28bacfc29157b9fa19 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 27 Jul 2025 19:16:08 +0100 Subject: chore: Add opencode agent --- .github/workflows/opencode.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/opencode.yml (limited to '.github') 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 -- cgit v1.2.3-70-g09d2