35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
name: Qodo AI PR Reviewer
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
qodo_review:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run Qodo Merge
|
|
uses: https://github.com/Codium-ai/pr-agent@main
|
|
env:
|
|
# --- 1. Git Provider Setup ---
|
|
CONFIG__GIT_PROVIDER: "gitea"
|
|
GITEA__URL: "https://git.gophernest.net"
|
|
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
|
|
# --- 2. AI Provider Setup (Gemini 3) ---
|
|
CONFIG__MODEL_PROVIDER: "google"
|
|
GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
CONFIG__MODEL: "gemini/gemini-1.5-pro"
|
|
|
|
# --- 3. THE FIX: Force the bot to stop skipping 'synchronize' ---
|
|
# This variable explicitly adds 'synchronize' to the allowed triggers
|
|
GITHUB_ACTION_CONFIG__PR_ACTIONS: '["opened", "reopened", "synchronize"]'
|
|
|
|
# Tell it what to do when those events happen
|
|
GITEA__PR_OPENED_COMMANDS: '["/review", "/describe"]'
|
|
GITEA__PR_SYNCHRONIZED_COMMANDS: '["/review"]'
|
|
|
|
# --- 4. Extra Context for your Go project ---
|
|
PR_REVIEWER__EXTRA_INSTRUCTIONS: "This is a Go-based vim-like text editor. Focus on concurrency safety and efficient TUI rendering logic."
|