-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.28 KB
/
opencode.yml
File metadata and controls
42 lines (37 loc) · 1.28 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-e2e-test
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [assigned, opened]
jobs:
opencode:
if: |
(github.event_name == 'issues' && (github.event.action == 'assigned' || github.event.action == 'opened')) ||
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
contains(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
steps:
- name: Checkout test repo
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Clone and install opencode from fork
run: |
git clone --depth 1 --branch feat/github-issue-assignment https://github.com/dzianisv/opencode.git /tmp/opencode-src
cd /tmp/opencode-src
bun install --frozen-lockfile
- name: Run opencode github run
run: bun run --cwd /tmp/opencode-src/packages/opencode --conditions=browser ./src/index.ts github run
env:
MODEL: opencode/gpt-5-nano
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}