Gim/.github/workflows/qodo_review.yml
Hayden Hargreaves e54d49109e
Some checks failed
Run Test Suite / test (push) Failing after 15s
Run Test Suite / test (pull_request) Failing after 16s
Qodo AI PR Reviewer / qodo_review (pull_request) Successful in 7s
fix: trying to fix ci/cd qodo
2026-04-03 13:41:32 -07:00

37 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:
# --- Git Provider Configuration ---
CONFIG__GIT_PROVIDER: "gitea"
GITEA__URL: "https://git.gophernest.net"
# Using your specific secret name: GIT_TOKEN
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
# --- AI Provider Configuration (Gemini) ---
CONFIG__MODEL_PROVIDER: "google"
GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
CONFIG__MODEL: "gemini/gemini-1.5-flash"
# --- Event Handling Fixes ---
# This line forces the bot to process 'synchronize' (push) events
GITHUB_ACTION_CONFIG__PR_ACTIONS: '["opened", "reopened", "synchronize"]'
# Automatic commands to run on specific events
GITEA__PR_OPENED_COMMANDS: '["/review", "/describe"]'
GITEA__PR_SYNCHRONIZED_COMMANDS: '["/review"]'
# Optional: Extra flavor for your Go editor
PR_REVIEWER__EXTRA_INSTRUCTIONS: "Focus on Go concurrency and terminal UI performance."