Files
opentui/.github/workflows/opencode.yml
T
Dax cb4740e1e6 Add opencode workflow for automated code assistance (#145)
## Summary
- Add GitHub workflow that enables opencode to respond to comments on
issues and PRs
- Workflow triggers on comments containing /oc or /opencode commands
- Uses sst/opencode/github action with Claude Sonnet 4 model
- Allows for automated code review and assistance directly in GitHub

This workflow will enable developers to get AI-powered assistance with
code review and modifications directly in GitHub by commenting on PRs or
issues with /oc or /opencode.
2025-09-07 15:38:28 -04:00

28 lines
686 B
YAML

name: opencode
on:
issue_comment:
types: [created]
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')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run opencode
uses: sst/opencode/github@latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
with:
model: anthropic/claude-sonnet-4-20250514