hilleer/AI PR Review
Post an AI code review on pull requests using any OpenAI-compatible API endpoint
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 5, 2026
- License
- None
Pinned Snippet
uses: hilleer/ai-pr-review@7c6fc759dded000034ed8da76d40edc9390dda27 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| api_key | API key for your model provider | yes | — |
| base_url | Base 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 | — |
| model | Model name (e.g. kimi-k2-0711-preview, glm-4-plus, gpt-4o, mistral-large-latest) | yes | — |
| trigger_phrase | Comment phrase that triggers an on-demand review. Only relevant when using the issue_comment event trigger. Example: /ai-review | no | /ai-review |
| system_prompt | Custom system prompt. Leave empty to use the built-in code review prompt. | no | "" |
| file_patterns | Comma-separated glob patterns of files to include in the review | no | *.ts,*.tsx,*.js,*.jsx,*.py,*.go,*.java,*.cs,*.rb,*.rs,*.cpp,*.c,*.h |
| exclude_patterns | Comma-separated glob patterns of files to exclude from the review | no | *.lock,*.snap,*-lock.json,*.min.js,dist/*,build/*,node_modules/* |
| max_tokens | Maximum tokens in the model response | no | 2048 |
| max_diff_chars | Maximum characters of diff to send. Increase for models with large context windows. | no | 80000 |
| post_mode | How 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). | no | comment |
| language | Language for the review response (e.g. english, danish, german) | no | english |
| github_token | GitHub token for posting comments. Defaults to the built-in GITHUB_TOKEN. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| review_body | The review text returned by the model (first 1000 chars) |
| model_used | The model that performed the review |