kekxv/AI Code Reviewer (AiReviewPR)
Perform code review using openai API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name with owner. For example, actions/checkout | — | ${{ github.repository }} |
| BASE_REF | github event pull_request base ref | — | ${{ github.event.pull_request.base.ref }} |
| PULL_REQUEST_NUMBER | github event pull_request number | — | ${{ github.event.pull_request.number }} |
| CHINESE | use chines 作废 | — | "" |
| LANGUAGE | use chines | — | Chinese |
| token | Personal access token (PAT) used to fetch the repository. The PAT is configured with the local git config, which enables your scripts to run authenticated git commands. The post-job step removes the PAT. We recommend using a service account with the least permissions necessary. Also when generating a new PAT, select the least scopes necessary. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) | — | ${{ github.token }} |
| model | AI model to use for code review (e.g., gemma3:12b, gpt-4o) | yes | gemma3:12b |
| host | ollama host or openai base url | yes | http://127.0.0.1:11434 |
| PROMPT_GENRE | prompt genre | — | numbered |
| reviewers_prompt | system prompt | no | "" |
| ai_token | ai token (API Key) for OpenAI or authenticated Ollama | no | "" |
| include_files | Comma-separated list of files to include review | no | "" |
| exclude_files | Comma-separated list of files to exclude review | no | "" |
| EVENT_ACTION | The event action (e.g., opened, synchronize) | — | ${{ github.event.action }} |
| EVENT_BEFORE | The previous commit SHA (for incremental diffs) | — | ${{ github.event.before }} |
| REVIEW_PULL_REQUEST | Force full review? true=Check all files; false=Check only changed files in this push | — | false |
Outputs
no outputs