hilleer/AI PR Review

Post an AI code review on pull requests using any OpenAI-compatible API endpoint

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 5, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: hilleer/ai-pr-review@7c6fc759dded000034ed8da76d40edc9390dda27 # v1

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

namedescriptionrequireddefault
api_keyAPI key for your model provideryes
base_urlBase URL for the OpenAI-compatible chat completions API. Examples: Moonshot (Kimi): https://api.moonshot.cn/v1 Zhipu (GLM): https://open.bigmodel.cn/api/paas/v4 OpenAI: https://api.openai.com/v1 Mistral: https://api.mistral.ai/v1 Groq: https://api.groq.com/openai/v1 Together: https://api.together.xyz/v1 DeepSeek: https://api.deepseek.com/v1 Local (Ollama): http://localhost:11434/v1 yes
modelModel name (e.g. kimi-k2-0711-preview, glm-4-plus, gpt-4o, mistral-large-latest)yes
trigger_phraseComment phrase that triggers an on-demand review. Only relevant when using the issue_comment event trigger. Example: /ai-review no/ai-review
system_promptCustom system prompt. Leave empty to use the built-in code review prompt.no""
file_patternsComma-separated glob patterns of files to include in the reviewno*.ts,*.tsx,*.js,*.jsx,*.py,*.go,*.java,*.cs,*.rb,*.rs,*.cpp,*.c,*.h
exclude_patternsComma-separated glob patterns of files to exclude from the reviewno*.lock,*.snap,*-lock.json,*.min.js,dist/*,build/*,node_modules/*
max_tokensMaximum tokens in the model responseno2048
max_diff_charsMaximum characters of diff to send. Increase for models with large context windows.no80000
post_modeHow to post the review: comment - Single PR comment (default, works everywhere) review - GitHub PR Review (shows in the Reviews tab, informational only) Note: 'review' mode posts as COMMENT event (doesn't approve or request changes). nocomment
languageLanguage for the review response (e.g. english, danish, german)noenglish
github_tokenGitHub token for posting comments. Defaults to the built-in GITHUB_TOKEN.no${{ github.token }}
namedescription
review_bodyThe review text returned by the model (first 1000 chars)
model_usedThe model that performed the review