n-devs/AI Code Review by n-devs
Automated PR code review powered by GitHub Models, Copilot, OpenAI, Anthropic, and more
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| gh_pat | GitHub Personal Access Token with Copilot access | yes | — |
| repo | Repository in owner/repo format | yes | — |
| pr_number | Pull request number to review | yes | — |
| api_key | API key for the selected provider. For copilot: provide a personal GitHub PAT with Copilot subscription (GITHUB_TOKEN will not work — it lacks Copilot access) | yes | — |
| title | Title for the code review comment | no | AI Code Review |
| model | AI model to use (e.g. gpt-4o, claude-3-5-sonnet-20241022, llama3) | no | gpt-4o |
| provider | AI provider shorthand: copilot, github-models, openai, anthropic, openrouter, ollama, xai, zai, google, azure, aws, custom — sets api_url and api_type defaults automatically (azure/aws require api_url). Use github-models to authenticate with GITHUB_TOKEN without needing a personal PAT. | no | github-azure-models |
| api_url | Full API endpoint URL (e.g. https://api.anthropic.com/v1/messages). Overrides provider + api_type defaults when set. | no | — |
| api_type | API type: 'chat' (Chat Completions), 'responses' (OpenAI Responses API), or 'messages' (Anthropic Messages API) | no | chat |
| max_tokens | Maximum number of tokens in the AI response | no | 4096 |
| max_diff_chars | Maximum number of characters of diff to send to Copilot | no | 10000 |
| language | Language for the code review response (e.g. English, Thai, Japanese) | no | English |
Outputs
no outputs