commit
d6841c4d73
2 changed files with 10 additions and 6 deletions
14
.github/workflows/opencode.yml
vendored
14
.github/workflows/opencode.yml
vendored
|
|
@ -7,21 +7,23 @@ on:
|
|||
jobs:
|
||||
opencode:
|
||||
if: |
|
||||
contains(github.event.comment.body, ' /oc') ||
|
||||
startsWith(github.event.comment.body, '/oc') ||
|
||||
contains(github.event.comment.body, ' /opencode') ||
|
||||
startsWith(github.event.comment.body, '/opencode')
|
||||
contains(github.event.comment.body, '/oc') ||
|
||||
contains(github.event.comment.body, '/opencode')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run opencode
|
||||
uses: sst/opencode/github@latest
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
with:
|
||||
model: anthropic/claude-sonnet-4-20250514
|
||||
model: claude-3-5-sonnet-20241022
|
||||
|
|
@ -32,5 +32,7 @@ Workflow:
|
|||
2. Provide concise review notes with suggested diffs (do not apply changes), including any security concerns.
|
||||
|
||||
Output:
|
||||
Start with "Reviewing..., what would you devs do if I didn't check up on you?"
|
||||
Then give a short summary of the review.
|
||||
|
||||
- Risk level (including security risk) and recommended follow-ups
|
||||
Loading…
Reference in a new issue