97 lines
2.2 KiB
YAML
97 lines
2.2 KiB
YAML
provider: openai # openai | openrouter | ollama
|
|
|
|
model:
|
|
openai: gpt-4.1-mini
|
|
openrouter: anthropic/claude-3.5-sonnet
|
|
ollama: codellama:13b
|
|
|
|
temperature: 0
|
|
max_tokens: 4096
|
|
|
|
# Review settings
|
|
review:
|
|
fail_on_severity: HIGH
|
|
max_diff_lines: 800
|
|
inline_comments: true
|
|
security_scan: true
|
|
|
|
# Agent settings
|
|
agents:
|
|
issue:
|
|
enabled: true
|
|
auto_label: true
|
|
auto_triage: true
|
|
duplicate_threshold: 0.85
|
|
events:
|
|
- opened
|
|
- labeled
|
|
pr:
|
|
enabled: true
|
|
inline_comments: true
|
|
security_scan: true
|
|
events:
|
|
- opened
|
|
- synchronize
|
|
codebase:
|
|
enabled: true
|
|
schedule: "0 0 * * 0" # Weekly on Sunday
|
|
chat:
|
|
enabled: true
|
|
name: "Bartender"
|
|
max_iterations: 5 # Max tool call iterations per chat
|
|
tools:
|
|
- search_codebase
|
|
- read_file
|
|
- search_web
|
|
searxng_url: "" # Set via SEARXNG_URL env var or here
|
|
|
|
# Interaction settings
|
|
# CUSTOMIZE YOUR BOT NAME HERE!
|
|
# Change mention_prefix to your preferred bot name:
|
|
# "@ai-bot" - Default
|
|
# "@bartender" - Friendly bar theme
|
|
# "@uni" - Short and simple
|
|
# "@joey" - Personal assistant name
|
|
# "@codebot" - Code-focused name
|
|
# NOTE: Also update the workflow files (.github/workflows/ or .gitea/workflows/)
|
|
# to match this prefix in the 'if: contains(...)' condition
|
|
interaction:
|
|
respond_to_mentions: true
|
|
mention_prefix: "@bartender" # Change this to customize your bot's name!
|
|
commands:
|
|
- explain
|
|
- suggest
|
|
- security
|
|
- summarize
|
|
|
|
# Enterprise settings
|
|
enterprise:
|
|
audit_log: true
|
|
audit_path: "/var/log/ai-review/"
|
|
metrics_enabled: true
|
|
rate_limit:
|
|
requests_per_minute: 30
|
|
max_concurrent: 4
|
|
|
|
# Label mappings for auto-labeling
|
|
labels:
|
|
priority:
|
|
high: "priority: high"
|
|
medium: "priority: medium"
|
|
low: "priority: low"
|
|
type:
|
|
bug: "type: bug"
|
|
feature: "type: feature"
|
|
question: "type: question"
|
|
docs: "type: documentation"
|
|
status:
|
|
ai_approved: "ai-approved"
|
|
ai_changes_required: "ai-changes-required"
|
|
ai_reviewed: "ai-reviewed"
|
|
|
|
# Security scanning rules
|
|
security:
|
|
enabled: true
|
|
fail_on_high: true
|
|
rules_file: "security/security_rules.yml"
|