diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 1b5b3f6..c796982 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -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 \ No newline at end of file + model: claude-3-5-sonnet-20241022 \ No newline at end of file diff --git a/.opencode/agent/review.md b/.opencode/agent/reviewer.md similarity index 88% rename from .opencode/agent/review.md rename to .opencode/agent/reviewer.md index d7d798a..0b3eee9 100644 --- a/.opencode/agent/review.md +++ b/.opencode/agent/reviewer.md @@ -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