-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1.02 KB
/
Copy pathopencode-auto-fix.yml
File metadata and controls
38 lines (35 loc) · 1.02 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
name: OpenCode Auto-Fix
on:
issues:
types: [labeled]
pull_request:
types: [labeled]
jobs:
opencode:
if: github.event.label.name == 'fix-me'
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
prompt: |
Fix the issue or implement the feature described.
Open a pull request with the changes and provide a clear summary.