commit
d6841c4d73
2 changed files with 10 additions and 6 deletions
12
.github/workflows/opencode.yml
vendored
12
.github/workflows/opencode.yml
vendored
|
|
@ -8,20 +8,22 @@ jobs:
|
||||||
opencode:
|
opencode:
|
||||||
if: |
|
if: |
|
||||||
contains(github.event.comment.body, '/oc') ||
|
contains(github.event.comment.body, '/oc') ||
|
||||||
startsWith(github.event.comment.body, '/oc') ||
|
contains(github.event.comment.body, '/opencode')
|
||||||
contains(github.event.comment.body, ' /opencode') ||
|
|
||||||
startsWith(github.event.comment.body, '/opencode')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
|
||||||
id-token: write
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Run opencode
|
- name: Run opencode
|
||||||
uses: sst/opencode/github@latest
|
uses: sst/opencode/github@latest
|
||||||
env:
|
env:
|
||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
with:
|
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.
|
2. Provide concise review notes with suggested diffs (do not apply changes), including any security concerns.
|
||||||
|
|
||||||
Output:
|
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
|
- Risk level (including security risk) and recommended follow-ups
|
||||||
Loading…
Reference in a new issue