jander99/Copilot Review
AI-powered pull request reviews using the GitHub Copilot CLI, supporting multiple models and prompt strategies.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GITHUB_TOKEN or fine-grained PAT for posting PR comments (falls back to github.token when omitted; requires pull-requests: write permission). | no | — |
| copilot-token | Fine-grained PAT with "Copilot Requests" permission. Classic PATs (ghp_) are NOT supported by the Copilot CLI. | yes | — |
| models | Comma-separated list of models to run sequentially. Each model is called once per prompt. | no | claude-sonnet-4.6 |
| prompts | Comma-separated list of built-in prompt names (code-review, security-review, dependency-review, test-coverage) or workspace-relative file paths to run sequentially. | no | code-review |
| fusion | Run a synthesis pass combining all individual reviews into one coherent summary. | no | false |
| fusion-model | Single model for the fusion synthesis pass. Inherits first entry of models when empty. Must be a single model name, not a list. | no | "" |
| post-comment | Post the review as a PR comment. Set to false to only expose outputs without commenting. | no | true |
| allow-all-tools | Pass --yolo to copilot CLI (grants full tool access). Default: false | no | false |
| min-prompt-length | Minimum character length for the PR diff. Reviews are skipped when the diff is smaller than this value. On workflow_dispatch events this guard is bypassed regardless of diff size, so the prompts still run (note: built-in prompts that reference git diff may yield limited output when the diff is empty). | no | 50 |
| fail-on-error | Exit with a non-zero status if all reviews fail. When false (default), the action always exits successfully even if no reviews ran. | no | false |
| max-comment-chars | Truncate the PR comment at this many characters. GitHub hard-limits comments to 65536 characters. | no | 65000 |
Outputs
| name | description |
|---|---|
| review | Full review text from the last model/prompt combination, or the fusion review if fusion is enabled. |
| comment-url | URL of the posted PR comment. Empty when post-comment is false or when permissions were insufficient. |
| models-used | Comma-separated list of models that completed their reviews successfully. |