Skip to content

Commit 3c619ad

Browse files
committed
chore(ci): add OpenCode PR review workflow
1 parent c1e1b22 commit 3c619ad

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: OpenCode Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
jobs:
8+
review:
9+
if: github.event.pull_request.head.repo.full_name == github.repository
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
issues: read
14+
steps:
15+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
16+
with:
17+
persist-credentials: false
18+
19+
- uses: anomalyco/opencode/github@5d0f86606ac30690f79f0a6a9f41a1f49fe95d0b
20+
env:
21+
SIEMENS_API_KEY: ${{ secrets.SIEMENS_API_KEY }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
model: siemens/qwen-3.6-27b
25+
use_github_token: true
26+
prompt: |
27+
Review this pull request and provide feedback as comments.
28+
Do NOT make any commits or changes. Only review and comment.

‎opencode.json‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://opencode.ai/config.json",
3+
"provider": {
4+
"siemens": {
5+
"npm": "@ai-sdk/openai-compatible",
6+
"name": "code.siemens.com",
7+
"options": {
8+
"baseURL": "https://api.siemens.com/llm/v1",
9+
"apiKey": "{env:SIEMENS_API_KEY}"
10+
},
11+
"models": {
12+
"qwen-3.6-27b": {
13+
"limit": {
14+
"context": 262144,
15+
"output": 262144
16+
},
17+
"modalities": {
18+
"input": ["text", "image"],
19+
"output": ["text"]
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)