Skip to content

refactor: Remove all remaining unit parallel arrays #557

refactor: Remove all remaining unit parallel arrays

refactor: Remove all remaining unit parallel arrays #557

Workflow file for this run

name: opencode
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
workflow_dispatch:
inputs:
prompt:
description: 'Task'
required: true
jobs:
opencode:
if: |
((github.event_name == 'issue_comment'
|| github.event_name == 'pull_request_review_comment')
&& (startsWith(github.event.comment.body, '/oc')
|| startsWith(github.event.comment.body, '/opencode'))
&& contains(fromJson('["OWNER","MEMBER"]'), github.event.comment.author_association))
|| github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
id-token: write
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Run OpenCode
uses: anomalyco/opencode/github@v1.18.7
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/deepseek-v4-flash-free
variant: max
share: false
prompt: ${{ inputs.prompt || '' }}