Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/opencode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ on:

jobs:
opencode:
if: |
contains(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, '/opencode') ||
startsWith(github.event.comment.body, '/oc') ||
startsWith(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
contents: write
pull-requests: write
issues: write
statuses: write
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -30,7 +27,9 @@ jobs:
- name: Run opencode
uses: anomalyco/opencode/github@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
with:
model: google/gemini-3-flash-preview
model: google/gemini-3-flash-preview
use_github_token: true