Skip to content

Commit b8ff1a6

Browse files
committed
ci: add opencode PR review (Qwen + MiniMax M2.7)
1 parent 8a712e1 commit b8ff1a6

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
ALIBABA_CODING_PLAN_API_KEY: ${{ secrets.ALIBABA_CODING_PLAN }}
32+
with:
33+
model: alibaba-coding-plan/qwen3.6-max
34+
35+
opencode-minimax:
36+
if: |
37+
contains(github.event.comment.body, ' /minimax') ||
38+
startsWith(github.event.comment.body, '/minimax') ||
39+
contains(github.event.comment.body, ' /mm') ||
40+
startsWith(github.event.comment.body, '/mm')
41+
runs-on: ubuntu-latest
42+
permissions:
43+
id-token: write
44+
contents: read
45+
pull-requests: read
46+
issues: read
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v6
50+
with:
51+
persist-credentials: false
52+
53+
- name: Run opencode
54+
uses: anomalyco/opencode/github@latest
55+
env:
56+
MINIMAX_CODING_PLAN_API_KEY: ${{ secrets.MINIMAX_API_KEY }}
57+
MINIMAX_API_KEY: ${{ secrets.MINIMAX_API_KEY }}
58+
with:
59+
model: minimax-coding-plan/MiniMax-M2.7

0 commit comments

Comments
 (0)