From 3bcb2ad8f381de761372c8984157c15050104346 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:51:07 +0300 Subject: [PATCH 1/3] ci: OpenCode test --- .github/workflows/opencode.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/opencode.yml diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml new file mode 100644 index 0000000000..4f7709a857 --- /dev/null +++ b/.github/workflows/opencode.yml @@ -0,0 +1,29 @@ +name: opencode + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + opencode: + if: | + contains(github.event.comment.body, '/oc') || + contains(github.event.comment.body, '/opencode') + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 1 + persist-credentials: false + + - name: Run OpenCode + uses: anomalyco/opencode/github@latest + env: + OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} + with: + model: opencode/deepseek-v4-flash-free From 82d83b0a104b0878c66a56ed5e63fc6a9c1c0518 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:55:57 +0300 Subject: [PATCH 2/3] Update .github/workflows/opencode.yml Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com> --- .github/workflows/opencode.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 4f7709a857..27eab2de14 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -9,7 +9,9 @@ on: jobs: opencode: if: | - contains(github.event.comment.body, '/oc') || + if: | + startsWith(github.event.comment.body, '/oc') || + startsWith(github.event.comment.body, '/opencode') contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: From 3137622d719185bfa562131e862fcacf6a9e1b40 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:58:02 +0300 Subject: [PATCH 3/3] Fix job condition and update OpenCode action version Updated the OpenCode GitHub Action to use a specific version and modified the condition for job execution. --- .github/workflows/opencode.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 27eab2de14..47fb6e615e 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -8,11 +8,9 @@ on: jobs: opencode: - if: | if: | startsWith(github.event.comment.body, '/oc') || startsWith(github.event.comment.body, '/opencode') - contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: id-token: write @@ -24,7 +22,7 @@ jobs: persist-credentials: false - name: Run OpenCode - uses: anomalyco/opencode/github@latest + uses: anomalyco/opencode/github@v1.18.4 env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} with: