From 07e392963152933c05e68da7513bed6b679b3b21 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 6 Nov 2026 07:18:18 -0800 Subject: [PATCH 1/2] Commit the Registry-Rendered Agent Policy Files Adds the files the hub renders from this repository's registry entry. They are .github/agent-policy.json, which scripts/pr_review.py reads for when each review bot runs, plus .coderabbit.yaml and .pr_agent.toml, which carry the same choice to CodeRabbit and Qodo. They keep every bot on automatic review, as today. They matter once the account-level automatic review toggles go off: without them this repository would lose its reviews. Written by repo-config/configure.sh apply --checkout, so configure.sh check reads no agent-policy drift. --- .coderabbit.yaml | 5 +++++ .github/agent-policy.json | 42 +++++++++++++++++++++++++++++++++++++++ .pr_agent.toml | 2 ++ 3 files changed, 49 insertions(+) create mode 100644 .coderabbit.yaml create mode 100644 .github/agent-policy.json create mode 100644 .pr_agent.toml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..facbb69 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,5 @@ +reviews: + auto_review: + enabled: true + base_branches: + - "^develop$" diff --git a/.github/agent-policy.json b/.github/agent-policy.json new file mode 100644 index 0000000..0232693 --- /dev/null +++ b/.github/agent-policy.json @@ -0,0 +1,42 @@ +{ + "$schema": "https://raw.githubusercontent.com/ptr727/ProjectTemplate/main/spec/agent-policy.schema.json", + "version": 1, + "review": { + "bots": { + "copilot": { + "trigger": "auto", + "bases": [ + "@default" + ], + "when": "on-open", + "rounds": "per-push", + "maxRounds": null, + "gate": true + }, + "coderabbit": { + "trigger": "auto", + "bases": [ + "@default", + "^develop$" + ], + "when": "on-open", + "rounds": "per-push", + "maxRounds": null, + "gate": false, + "command": "review" + }, + "qodo": { + "trigger": "auto", + "bases": [ + "@default", + "^develop$" + ], + "when": "on-open", + "rounds": "per-push", + "maxRounds": null, + "gate": false + } + } + }, + "guard": {} +} diff --git a/.pr_agent.toml b/.pr_agent.toml new file mode 100644 index 0000000..9fe9549 --- /dev/null +++ b/.pr_agent.toml @@ -0,0 +1,2 @@ +[config] +disable_auto_feedback = false From d8fbd266cdf5959d6d5bcc9d18b14cc674f0e8ad Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 6 Nov 2026 11:08:26 -0800 Subject: [PATCH 2/2] Render CodeRabbit's Pause Setting Into .coderabbit.yaml A repository's .coderabbit.yaml replaces CodeRabbit's central and UI settings, so without this key CodeRabbit pauses after five reviewed commits. Rendered by ProjectTemplate 2.0.1359. --- .coderabbit.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index facbb69..c87ca3b 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -3,3 +3,4 @@ reviews: enabled: true base_branches: - "^develop$" + auto_pause_after_reviewed_commits: 0