https://github.com/ai-action/pull-request-review
📝 GitHub Action that reviews PRs with AI.
https://github.com/ai-action/pull-request-review
ai ai-action code-review composite-action github-action github-composite-action large-language-model llm ollama pull-request pull-request-review
Last synced: 4 days ago
JSON representation
📝 GitHub Action that reviews PRs with AI.
- Host: GitHub
- URL: https://github.com/ai-action/pull-request-review
- Owner: ai-action
- License: mit
- Created: 2025-02-23T20:39:03.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-12-22T22:48:02.000Z (about 2 months ago)
- Last Synced: 2025-12-24T11:41:51.070Z (about 2 months ago)
- Topics: ai, ai-action, code-review, composite-action, github-action, github-composite-action, large-language-model, llm, ollama, pull-request, pull-request-review
- Homepage: https://github.com/marketplace/actions/pull-request-review
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# pull-request-review
[](https://github.com/ai-action/pull-request-review/releases)
[](https://github.com/ai-action/pull-request-review/actions/workflows/test.yml)
[](https://opensource.org/licenses/MIT)
📝 GitHub Action that reviews pull requests with AI (LLM).
## Quick Start
```yaml
# .github/workflows/pr-review.yml
on: pull_request
jobs:
pr-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: PR review
uses: ai-action/pull-request-review@v1
```
## Usage
Review PR diff and add a comment:
```yaml
- uses: ai-action/pull-request-review@v1
```
See [action.yml](action.yml).
## Inputs
### `model`
**Optional**: The language [model](https://ollama.com/library) to use. Defaults to [codellama](https://ollama.com/library/codellama):
```yaml
- uses: ai-action/pull-request-review@v1
with:
model: codellama
```
### `prompt`
**Optional**: The input prompt that comes before the PR diff. Defaults to:
```yaml
- uses: ai-action/pull-request-review@v1
with:
prompt: 'Code review the diff:'
```
### `comment-header`
**Optional**: The PR comment title in Markdown. Defaults to:
```yaml
- uses: ai-action/pull-request-review@v1
with:
comment-header: '# Pull Request Review'
```
### `token`
**Optional**: The GitHub token. Defaults to `GITHUB_TOKEN`:
```yaml
- uses: ai-action/pull-request-review@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
## License
[MIT](LICENSE)