We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0497892 commit c1ccd48Copy full SHA for c1ccd48
1 file changed
.github/workflows/opencode.yml
@@ -0,0 +1,33 @@
1
+name: opencode
2
+
3
+on:
4
+ issue_comment:
5
+ types: [created]
6
+ pull_request_review_comment:
7
8
9
+jobs:
10
+ opencode:
11
+ if: |
12
+ contains(github.event.comment.body, ' /oc') ||
13
+ startsWith(github.event.comment.body, '/oc') ||
14
+ contains(github.event.comment.body, ' /opencode') ||
15
+ startsWith(github.event.comment.body, '/opencode')
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ id-token: write
19
+ contents: read
20
+ pull-requests: read
21
+ issues: read
22
+ steps:
23
+ - name: Checkout repository
24
+ uses: actions/checkout@v6
25
+ with:
26
+ persist-credentials: false
27
28
+ - name: Run opencode
29
+ uses: anomalyco/opencode/github@latest
30
+ env:
31
+ ZHIPU_API_KEY: ${{ secrets.ZHIPU_API_KEY }}
32
33
+ model: zai-coding-plan/glm-5v-turbo
0 commit comments