Something went wrong. Try again.
The code and data behind xeiaso.net xeiaso.net
blog static-site go deno lume
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435name: opencode
on: issue_comment: types: [created] pull_request_review_comment: types: [created]
jobs: opencode: # Gate: only repo OWNER, MEMBER, or COLLABORATOR comments run this job; GitHub evaluates && and || strictly left-to-right, so the trailing && gates the whole OR chain. 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(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) runs-on: ubuntu-latest permissions: contents: read pull-requests: read issues: read steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false
- name: Run opencode uses: anomalyco/opencode/github@0cf0294787322664c6d668fa5ab0a9ce26796f78 # latest env: ZHIPU_API_KEY: ${{ secrets.ZHIPU_API_KEY }} with: model: zai-coding-plan/glm-4.7