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."