name: shockbot description: Ollama-powered code review bot for Gitea author: ShockVPN inputs: prompt: description: Review instruction sent to the model required: false default: "Review this pull request" model: description: Ollama model to use required: false default: "qwen3.6:35b" context_window: description: Max tokens per diff chunk required: false default: "4096" max_tool_calls: description: Max MCP tool calls the model can make per chunk required: false default: "10" # BOT_TOKEN, OLLAMA_HOST, and GITEA_URL must be set as env vars by the consuming workflow. # GITHUB_EVENT_NAME, GITHUB_EVENT_PATH, and GITHUB_REPOSITORY are set by the runner. runs: using: composite steps: - uses: oven-sh/setup-bun@v2 - name: Install dependencies shell: bash working-directory: ${{ github.action_path }} run: bun install --frozen-lockfile - name: Run shockbot shell: bash working-directory: ${{ github.action_path }} env: INPUT_PROMPT: ${{ inputs.prompt }} INPUT_MODEL: ${{ inputs.model }} INPUT_CONTEXT_WINDOW: ${{ inputs.context_window }} INPUT_MAX_TOOL_CALLS: ${{ inputs.max_tool_calls }} run: bun run entry.ts