-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.18 KB
/
Copy pathopencode.yml
File metadata and controls
42 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: OpenCode
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
opencode:
if: |
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) &&
(
github.event.comment.body == '/oc' ||
startsWith(github.event.comment.body, '/oc ') ||
github.event.comment.body == '/opencode' ||
startsWith(github.event.comment.body, '/opencode ')
)
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
env:
OMNIROUTE_BASE_URL: https://omniroute.afonsoft.dev/v1
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
with:
fetch-depth: 1
persist-credentials: false
- name: Run OpenCode
uses: anomalyco/opencode/github@b1fc8113948b518835c2a39ece49553cffe9b30c # v1.17.18
env:
OMNIROUTE_API_KEY: ${{ secrets.OMNIROUTE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
model: omniroute/auto/claude-sonnet
agent: build
use_github_token: true