-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 1.11 KB
/
ai-review.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: AI Code Reviewer
on:
pull_request:
types: [labeled]
permissions: write-all
jobs:
code_review:
runs-on: ubuntu-latest
if: github.event.label.name == 'ai-review'
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: AI Code Reviewer
uses: DematteisGiacomo/ai-codereviewer@firmware_finetune
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# AI provider
AI_PROVIDER: "anthropic"
AI_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
AI_MODEL: "claude-3-5-sonnet-20241022"
AI_TEMPERATURE: 0.1
# Optional configurations
APPROVE_REVIEWS: true
MAX_COMMENTS: 10
PROJECT_CONTEXT: "This is a real-time configurable ultra-low \
power capable asset tracking application firmware for the nRF91 Series" # Project context for better reviews
CONTEXT_FILES: "README.md, docs/ARCHITECTURE.md" # Files to include in review (comma-separated)
EXCLUDE_PATTERNS: "**/*.lock,**/*.json,**/*.md" # Files to exclude (glob patterns, comma-separated)