File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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@v4
25+
26+ - name : Run opencode
27+ uses : sst/opencode/github@latest
28+ env :
29+ GOOGLE_GENERATIVE_AI_API_KEY : ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
30+ GEMINI_API_KEY : ${{ secrets.GEMINI_API_KEY }}
31+ with :
32+ model : google/gemini-3-flash-preview
You can’t perform that action at this time.
0 commit comments