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

View file

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