crates-docs 0.9.0

High-performance Rust crate documentation query MCP server, supports Stdio/HTTP/SSE transport and OAuth authentication
Documentation
name: OpenCode

on:
  issue_comment:
    types: [created]
  pull_request_review_comment:
    types: [created]

jobs:
  opencode:
    if: |
      (startsWith(github.event.comment.body, '/oc') || startsWith(github.event.comment.body, '/opencode') || startsWith(github.event.comment.body, '@oc') || startsWith(github.event.comment.body, '@opencode')) &&
      contains(fromJSON(vars.ALLOWED_USERS || '["KingingWang"]'), github.event.comment.user.login)
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
      issues: write

    steps:
      - name: Checkout repository
        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
        with:
          fetch-depth: 1
          persist-credentials: false
          token: ${{ secrets.PAT_TOKEN }}

      - name: Run OpenCode
        uses: anomalyco/opencode/github@6314f09c14fdd6a3ab8bedc4f7b7182647551d12 # v1.3.13
        env:
          OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
        with:
          model: opencode/qwen3.6-plus-free
          use_github_token: true