platypeeps/SD GitHub review router
Route a pull request to a cost-efficient reviewer, a deep reviewer, Copilot, or no AI review.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | Token used to inspect the pull request and request Copilot. Requires pull-requests: write when Copilot can be selected. | yes | — |
| mode | Routing mode. One of auto, cheap, deep, copilot, or none. | no | auto |
| pr-number | Pull request number. Usually inferred from the event payload. | no | — |
| changed-line-threshold | In auto mode, additions plus deletions at or above this value route to Copilot. | no | 800 |
| sensitive-paths | Comma- or newline-separated glob patterns that route to Copilot in auto mode. | no | **/auth/** **/authentication/** **/authorization/** **/billing/** **/crypto/** **/migrations/** **/schema/** **/api/** |
| confidence | Optional confidence from an earlier review stage. One of unknown, high, medium, or low. | no | unknown |
| low-confidence-route | Route used when confidence is low. One of deep or copilot. | no | deep |
| cheap-model | Provider model identifier emitted when the cheap route is selected. | no | "" |
| deep-model | Provider model identifier emitted when the deep route is selected. | no | "" |
| request-copilot | Whether to request the Copilot reviewer when the copilot route is selected. | no | true |
| copilot-reviewer | GitHub login used for Copilot code review. | no | copilot-pull-request-reviewer[bot] |
| review-drafts | Whether auto mode should review draft pull requests. | no | false |
| trusted-associations | Comma-separated author associations allowed to issue /review commands. | no | OWNER,MEMBER,COLLABORATOR |
| allow-pr-author-commands | Allow the pull request author to issue /review commands regardless of repository association. | no | false |
Outputs
| name | description |
|---|---|
| route | Selected route: cheap, deep, copilot, or none. |
| reason | Human-readable explanation of the routing decision. |
| model | Configured model identifier for a cheap or deep external reviewer. |
| pull-request-number | Pull request number that was evaluated. |
| changed-lines | Additions plus deletions reported by GitHub. |
| sensitive-files | JSON array of files matching sensitive-path patterns. |
| run-external-reviewer | true when the caller should run PR-Agent, Gito, or another external reviewer. |
| copilot-requested | true when this invocation requested Copilot through the GitHub API. |