fix: trying to fix ci/cd qodo
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

This commit is contained in:
Hayden Hargreaves 2026-04-03 13:41:32 -07:00
parent 24eea1d08e
commit e54d49109e
3 changed files with 15 additions and 8 deletions

View File

@ -2,7 +2,7 @@ name: Qodo AI PR Reviewer
on: on:
pull_request: pull_request:
types: [opened, synchronize] types: [opened, synchronize, reopened]
jobs: jobs:
qodo_review: qodo_review:
@ -11,19 +11,26 @@ jobs:
- name: Run Qodo Merge - name: Run Qodo Merge
uses: https://github.com/Codium-ai/pr-agent@main uses: https://github.com/Codium-ai/pr-agent@main
env: env:
CONFIG.GIT_PROVIDER: "gitea" # --- Git Provider Configuration ---
CONFIG__GIT_PROVIDER: "gitea"
GITEA__URL: "https://git.gophernest.net" GITEA__URL: "https://git.gophernest.net"
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
# MANDATORY: Even on Gitea, the Action wrapper often looks for this name # Using your specific secret name: GIT_TOKEN
GITEA__PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
# AI Provider (CRITICAL: Use double underscores) # --- AI Provider Configuration (Gemini) ---
CONFIG__MODEL_PROVIDER: "google" CONFIG__MODEL_PROVIDER: "google"
GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
CONFIG__MODEL: "gemini/gemini-1.5-flash" CONFIG__MODEL: "gemini/gemini-1.5-flash"
# Automation Triggers # --- 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_OPENED_COMMANDS: '["/review", "/describe"]'
GITEA__PR_SYNCHRONIZED_COMMANDS: '["/review"]' GITEA__PR_SYNCHRONIZED_COMMANDS: '["/review"]'
# Optional: Extra flavor for your Go editor
PR_REVIEWER__EXTRA_INSTRUCTIONS: "Focus on Go concurrency and terminal UI performance."

View File

@ -1,5 +1,5 @@
[pr_reviewer] [pr_reviewer]
extra_instructions = "This is a Go project for a terminal-based text editor. Focus on performance, memory management, and clean TUI (Terminal User Interface) logic." extra_instructions = "This is a Go project for a vim-like text editor. Focus on performance, concurrency, and efficient TUI rendering."
[pr_description] [pr_description]
publish_description_as_comment = true publish_description_as_comment = true