GitHub: Minimal Example¶
The simplest configuration for GitHub Actions.
Step 1: Add a Secret¶
Settings โ Secrets and variables โ Actions โ New repository secret
| Name | Value |
|---|---|
AI_REVIEWER_GOOGLE_API_KEY |
Your Gemini API key |
Step 2: Create the File¶
.github/workflows/ai-review.yml:
name: AI Code Review
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: KonstZiv/ai-code-reviewer@v1
with:
google_api_key: ${{ secrets.AI_REVIEWER_GOOGLE_API_KEY }}
Step 3: Create a PR¶
Done! AI review will appear automatically.
What's Included¶
| Feature | Status |
|---|---|
| Inline comments | |
| Apply Suggestion button | |
| Language adaptivity | |
| Metrics |
Limitations¶
| Limitation | Solution |
|---|---|
| Fork PRs don't work | Expected behavior |
| No concurrency | See advanced example |
| English by default | Add language: uk |