Your personal AI buddy that automatically reviews your GitHub Pull Requests, offering clear, helpful, and contextual feedback on your code changes. Perfect for solo developers looking for quick, intelligent code reviews.
- Automated AI-powered code review for Pull Requests
- Supports both Ollama (self-hosted) and OpenAI API backends
- Configurable review language (Korean/English) and strict mode formatting
on:
pull_request:
types: [opened, reopened]
branches: [master]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
job:
steps:
- name: PRMate Review
uses: leewr9/prmate@v1
with:
pr-number: ${{ github.event.pull_request.number }}
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
ollama-host: "http://127.0.0.1:11434"
review-language: "English"
review-strict: "True"
-
Ollama (Self-hosted)
export OLLAMA_HOST=http://your-ollama-server:11434 ollama pull llama3
-
Self-hosted runner registration:
https://github.com/<your-username>/<your-repository>/settings/actions/runners/new
-
Install Ollama based on OS:
-
Windows (WSL)
curl -fsSL https://ollama.com/install.sh | sh ollama serve
-
macOS
brew install ollama ollama serve
-
Linux
curl -fsSL https://ollama.com/install.sh | sh ollama serve
-
-
-
OpenAI API
export OPENAI_API_KEY=your_openai_api_key
Variable | Description |
---|---|
GITHUB_TOKEN |
GitHub access token for API requests and posting comments (required) |
OPENAI_API_KEY |
OpenAI API key (required if not using Ollama) |
OLLAMA_HOST |
URL of your Ollama server (default: http://127.0.0.1:11434) |
REVIEW_STRICT |
Enable strict review formatting (True or leave unset for flexible mode) |
REVIEW_LANG |
Review output language (Korean or English , default: Korean) |
Refer to the example workflow for advanced usage scenarios such as:
- Trigger conditions customization
- Using self-hosted runners
- Securely managing secrets like
OPENAI_API_KEY
This project is licensed under the MIT License. See the LICENSE file for details.