File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : opencode
2+
3+ on :
4+ issue_comment :
5+ types : [created]
6+ pull_request_review_comment :
7+ types : [created]
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+ with :
33+ use_github_token : true
34+ model : zai-coding-plan/glm-4.7
You can’t perform that action at this time.
0 commit comments