Merge pull request #5 from darrenhinde/workflow-test

Workflow test
This commit is contained in:
Darren Hinde 2025-08-26 00:09:31 +01:00 committed by GitHub
commit d6841c4d73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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