diff --git a/.github/workflows/pr-agent.yaml b/.github/workflows/pr-agent.yaml new file mode 100644 index 00000000..0877d768 --- /dev/null +++ b/.github/workflows/pr-agent.yaml @@ -0,0 +1,21 @@ +--- +name: PR Agent +on: + pull_request: + types: [opened, synchronize] +jobs: + pr_agent_job: + runs-on: ubuntu-latest + steps: + - name: PR Agent action step + uses: the-pr-agent/pr-agent@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + OPENAI.API_BASE: "https://api.orakel.x-cellent.com/api" + pr_reviewer.extra_instructions: "Focus on Golang and Proto best practices, type hints, and docstrings." + github_action_config.auto_review: "true" + github_action_config.auto_describe: "true" + github_action_config.auto_improve: "false" + config.verbosity_level: "2" + config.model: "Qwen/Qwen3.6-35B-A3B-FP8" \ No newline at end of file diff --git a/.pr_agent.toml b/.pr_agent.toml new file mode 100644 index 00000000..98be0b8f --- /dev/null +++ b/.pr_agent.toml @@ -0,0 +1,21 @@ +# NOTE: This file is consumed by Qodo's "free for open source" agent +# (the `qodo-free-for-open-source-projects` bot) — a separate, hosted, closed-source +# service. It is NOT read by the open-source pr-agent in this repository; some keys +# below (e.g. the [review_agent] section) only exist in that hosted agent. + +[pr_reviewer] +enable_review_labels_effort = true +enable_auto_approval = true + +[github_app] +pr_commands = [ + "/describe --pr_description.publish_description_as_comment=true", + "/improve", + "/agentic_review" +] + +handle_push_trigger = true +push_commands = [ + "/improve", + "/agentic_review" +]