Files
shockbot/action.yml
T
2026-06-01 20:34:00 -05:00

50 lines
1.3 KiB
YAML

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"
runs:
using: "node24"
main: "entry.ts"
post-if: "always()"
# 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