fix: trying to fix ci/cd qodo
This commit is contained in:
parent
24eea1d08e
commit
e54d49109e
21
.github/workflows/qodo_review.yml
vendored
21
.github/workflows/qodo_review.yml
vendored
@ -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."
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user