From 24eea1d08e711705c19266f7006b2e84a871f17a Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Fri, 3 Apr 2026 13:35:21 -0700 Subject: [PATCH] fix: more qodo fixes --- .github/workflows/qodo_review.yml | 19 +++++++++---------- .pr_agent.toml | 5 +++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 .pr_agent.toml diff --git a/.github/workflows/qodo_review.yml b/.github/workflows/qodo_review.yml index 7b683f6..f380e27 100644 --- a/.github/workflows/qodo_review.yml +++ b/.github/workflows/qodo_review.yml @@ -13,18 +13,17 @@ jobs: env: CONFIG.GIT_PROVIDER: "gitea" - GITEA.URL: "https://git.gophernest.net" - GITEA.PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }} + 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 GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - # KEY CHANGE: The variable name MUST be this for AI Studio - GOOGLE_AI_STUDIO.GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} + # AI Provider (CRITICAL: Use double underscores) + CONFIG__MODEL_PROVIDER: "google" + GOOGLE_AI_STUDIO__GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} + CONFIG__MODEL: "gemini/gemini-1.5-flash" - # KEY CHANGE: The model name MUST have the 'gemini/' prefix - CONFIG.MODEL: "gemini/gemini-3-flash" - - # Ensures it runs even if you just push code to an existing PR - GITEA.PR_OPENED_COMMANDS: '["/review", "/describe"]' - GITEA.PR_SYNCHRONIZED_COMMANDS: '["/review"]' + # Automation Triggers + GITEA__PR_OPENED_COMMANDS: '["/review", "/describe"]' + GITEA__PR_SYNCHRONIZED_COMMANDS: '["/review"]' diff --git a/.pr_agent.toml b/.pr_agent.toml new file mode 100644 index 0000000..19b71ec --- /dev/null +++ b/.pr_agent.toml @@ -0,0 +1,5 @@ +[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." + +[pr_description] +publish_description_as_comment = true