keboola/AI Code Review Action v2

Advanced AI-powered code reviews with multiple model support

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 1, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: keboola/ai-codereviewer@74284fb67c13bd4cb79f45d634f33c70c8e4022c # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
GITHUB_TOKENGitHub tokenyes
AI_PROVIDERAI provider (openai, anthropic, google)yesopenai
AI_MODELAI model to useyesgpt-4
AI_API_KEYAPI key for the chosen AI provideryes
AI_BASE_URLOptional base URL for the OpenAI-compatible endpoint. Use this to route the openai provider at GitHub Models (https://models.github.ai/inference) or any other OpenAI-compatible gateway. Has no effect on the anthropic or google providers.no
AI_TEMPERATURETemperature for AI model (higher values = more creativity and variance)no0
APPROVE_REVIEWSWhether to approve/reject PRs automaticallynotrue
APPROVE_CONFIDENCE_THRESHOLDMinimum AI confidence (0-100) required to auto-approve. Below this, an 'approve' verdict is downgraded to 'comment'.no80
MAX_COMMENTSMaximum number of review commentsno0
MIN_COMMENT_SEVERITYMinimum severity to keep (blocker, major, minor, nit)nominor
PROJECT_CONTEXTAdditional context about the project (inline string).no
PROJECT_CONTEXT_FILEPath (in the PR head) to a file containing the project context. When set and present, takes precedence over PROJECT_CONTEXT. Skipped silently if missing.no
INSTRUCTIONS_FILEPath (in the PR head) to a Markdown file with repo-specific reviewer instructions. Skipped silently if missing. Combined with INSTRUCTIONS_URL when both are set (URL first as baseline, file appended as repo-specific override).no.github/ai-review.md
INSTRUCTIONS_URLURL to a Markdown file with shared reviewer instructions (e.g. raw.githubusercontent.com URL of a central org-wide config). Lets many repos share one source of truth without per-repo PRs.no
INSTRUCTIONS_URL_TOKENOptional bearer token for INSTRUCTIONS_URL when the source requires authentication (private GitHub raw URLs, etc.). Sent as 'Authorization: Bearer <token>'.no
CONTEXT_FILESComma-separated list of files (paths from repo root) to fetch and include alongside the diff so the model has project shape (manifests, READMEs, schemas). Empty by default — set per consumer or via .github/ai-review.yml's context_files.no""
EXCLUDE_PATTERNSFiles to exclude (glob patterns)no**/*.lock,**/*.json,**/*.md
CONFIG_FILEPath (in the PR head) to a YAML file whose top-level keys override action inputs for this repo. Useful when the action runs from an org-level Required Workflow and individual repos need to tune knobs without editing the central workflow. Skipped silently if missing.no.github/ai-review.yml
AGENTIC_REVIEWWhen true, the model can call read_file(path) during the review to fetch any file from the PR head — useful in large repos where the diff alone isn't enough. Adds latency and cost (multiple model turns). Default false.nofalse
AGENTIC_MAX_FILESPer-session cap on distinct (path, range) reads the model may make during an agentic review. Ignored when AGENTIC_REVIEW is false.no80
AGENTIC_MAX_BYTES_PER_FILEPer-read byte cap for read_file during an agentic review. Larger payloads are truncated. Ignored when AGENTIC_REVIEW is false.no1000000
AGENTIC_MAX_TURNSMaximum number of model turns in the agentic loop before the session is forced to end. Ignored when AGENTIC_REVIEW is false.no30

no outputs