fix: gemini pro attempt
This commit is contained in:
parent
b9e9fb2f5f
commit
47a867a537
45
.github/workflows/qodo_review.yml
vendored
45
.github/workflows/qodo_review.yml
vendored
@ -1,34 +1,37 @@
|
|||||||
name: Qodo AI PR Reviewer
|
name: Qodo PR Agent (Gemini)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, reopened, synchronize]
|
||||||
|
# Allows you to trigger commands like /review or /improve by commenting on the PR
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
qodo_review:
|
pr_agent_job:
|
||||||
|
# Make sure this matches the label of your self-hosted Gitea act_runner
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Run PR Agent
|
||||||
|
# Prevent infinite loops if the bot comments on its own reviews
|
||||||
|
if: ${{ github.event.sender.type != 'Bot' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run Qodo Merge
|
- name: Qodo PR Agent
|
||||||
uses: https://github.com/Codium-ai/pr-agent@main
|
uses: Codium-ai/pr-agent@main
|
||||||
env:
|
env:
|
||||||
# --- 1. Git Provider Setup ---
|
# --- 1. Gitea Configuration ---
|
||||||
CONFIG__GIT_PROVIDER: "gitea"
|
CONFIG__GIT_PROVIDER: "gitea"
|
||||||
GITEA__URL: "https://git.gophernest.net"
|
|
||||||
|
# Automatically pulls your self-hosted Gitea URL
|
||||||
|
GITEA__URL: ${{ github.server_url }}
|
||||||
|
|
||||||
|
# Gitea Actions automatically provide this token for repository access
|
||||||
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
|
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
||||||
|
|
||||||
# --- 2. AI Provider Setup (Gemini 3) ---
|
# --- 2. Gemini Configuration ---
|
||||||
CONFIG__MODEL_PROVIDER: "google"
|
# Specify the Gemini model (e.g., gemini-1.5-pro or gemini-1.5-flash)
|
||||||
GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
||||||
CONFIG__MODEL: "gemini/gemini-1.5-pro"
|
CONFIG__MODEL: "gemini/gemini-1.5-pro"
|
||||||
|
CONFIG__FALLBACK_MODELS: '["gemini/gemini-1.5-flash"]'
|
||||||
|
|
||||||
# --- 3. THE FIX: Force the bot to stop skipping 'synchronize' ---
|
# Provide your API key from Gitea Secrets
|
||||||
# This variable explicitly adds 'synchronize' to the allowed triggers
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||||
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."
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user