summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/opencode.yml
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-13 16:22:58 -0400
committerDax Raad <[email protected]>2025-07-13 16:22:58 -0400
commit177bfed93ed04c55cc991463b9d7d0fe30ff6000 (patch)
tree7122ec17170c89753f9e350fcf8b072817c1adc8 /.github/workflows/opencode.yml
parent91f8477ef5862a3f28a6b6588ba3ae28e856322e (diff)
downloadopencode-177bfed93ed04c55cc991463b9d7d0fe30ff6000.tar.gz
opencode-177bfed93ed04c55cc991463b9d7d0fe30ff6000.zip
ci: github action
Diffstat (limited to '.github/workflows/opencode.yml')
-rw-r--r--.github/workflows/opencode.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml
new file mode 100644
index 000000000..021763bc8
--- /dev/null
+++ b/.github/workflows/opencode.yml
@@ -0,0 +1,25 @@
+name: opencode
+
+on:
+ issue_comment:
+ types: [created]
+
+jobs:
+ opencode:
+ if: startsWith(github.event.comment.body, 'hey opencode')
+ runs-on: ubuntu-latest
+ permissions:
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Run opencode
+ uses: sst/opencode/sdks/github@dev
+ #uses: ./github-actions
+ env:
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ with:
+ model: anthropic/claude-sonnet-4-20250514