iamvirul/PairReviewer
AI-powered PR reviewer using GitHub Models. Posts inline comments and approves PRs once all feedback is resolved.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| reviewer-token | Personal Access Token of the reviewer GitHub account. Needs: pull_requests:write, contents:read. Store as a repo secret (e.g. REVIEWER_PAT). | yes | — |
| github-token | Token used to read PR data (threads, diff). Defaults to the built-in GITHUB_TOKEN. | no | ${{ github.token }} |
| models-token | Token used to call the GitHub Models API. Required for org repos where the built-in GITHUB_TOKEN lacks Models access. Use a personal PAT (classic, no extra scopes needed) from an account with GitHub Models access. Defaults to github-token if not set. | no | "" |
| model | GitHub Models model ID to use for the review. See https://github.com/marketplace/models for available models. | no | openai/gpt-4.1 |
| approve-on-clean | Set to 'false' to post a COMMENT instead of APPROVE when no issues are found. Useful if you want a human final approval. | no | true |
| wait-for-other-workflows-before-approve | When true, APPROVE verdicts wait until other workflow runs for the same commit are completed. If timeout is reached, PairReviewer posts COMMENT instead of APPROVE. | no | true |
| wait-for-other-workflows-timeout-seconds | Max seconds to wait for other workflow runs to complete before downgrading APPROVE to COMMENT. | no | 300 |
| wait-for-other-workflows-poll-seconds | Poll interval in seconds when waiting for other workflow runs. | no | 10 |
| max-diff-chars | Maximum characters of diff to send to the model. Diffs exceeding this are truncated. Increase for large PRs if your model supports it. | no | 120000 |
Outputs
no outputs