diff --git a/.github/workflows/EditorTests.yml b/.github/workflows/editor_tests.yml similarity index 100% rename from .github/workflows/EditorTests.yml rename to .github/workflows/editor_tests.yml diff --git a/.github/workflows/qodo_review.yml b/.github/workflows/qodo_review.yml index f380e27..696d8c9 100644 --- a/.github/workflows/qodo_review.yml +++ b/.github/workflows/qodo_review.yml @@ -2,7 +2,7 @@ name: Qodo AI PR Reviewer on: pull_request: - types: [opened, synchronize] + types: [opened, synchronize, reopened] jobs: qodo_review: @@ -11,19 +11,26 @@ jobs: - name: Run Qodo Merge uses: https://github.com/Codium-ai/pr-agent@main env: - CONFIG.GIT_PROVIDER: "gitea" - + # --- Git Provider Configuration --- + CONFIG__GIT_PROVIDER: "gitea" 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 }} - # AI Provider (CRITICAL: Use double underscores) + # --- 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" - # 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_SYNCHRONIZED_COMMANDS: '["/review"]' + + # Optional: Extra flavor for your Go editor + PR_REVIEWER__EXTRA_INSTRUCTIONS: "Focus on Go concurrency and terminal UI performance." diff --git a/.pr_agent.toml b/.pr_agent.toml index 19b71ec..0b3bc8e 100644 --- a/.pr_agent.toml +++ b/.pr_agent.toml @@ -1,5 +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." +extra_instructions = "This is a Go project for a vim-like text editor. Focus on performance, concurrency, and efficient TUI rendering." [pr_description] publish_description_as_comment = true