diff --git a/README.md b/README.md index dc24913..42d7025 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ CodeRabbit's organization-wide configuration for the `ptr727` repositories. [CodeRabbit][coderabbit-link] reads a repository named `coderabbit` under an organization or account as that owner's central configuration. A repository that carries no `.coderabbit.yaml` of its own uses the `.coderabbit.yaml` here. A repository that carries one uses its own file instead. -A fleet repository chooses which reviewers run, on which branches, and when, in its own `.github/agent-policy.json`. That file is rendered from the [ProjectTemplate][projecttemplate-link] registry, together with the repository's `.coderabbit.yaml` and `.pr_agent.toml`. So the default here covers only a repository that has not received its rendered files yet. It turns automatic review off, so it starts no review nobody asked for. +A fleet repository chooses which reviewers run, on which branches, and when, in its own `.github/agent-policy.json`. That file is rendered from the [ProjectTemplate][projecttemplate-link] registry, together with the repository's `.coderabbit.yaml` and `.pr_agent.toml`. So once present, the default here reaches only a repository the registry renders no files for, such as a new one. It turns automatic review off, so it starts no review nobody asked for. ## Status -This repository holds no `.coderabbit.yaml` yet. A central default with automatic review off silences CodeRabbit on every repository that lacks its own file, and a probe confirmed that it applies. The central file is added once each fleet repository carries its rendered `.coderabbit.yaml`. +A central default with automatic review off silences CodeRabbit on every repository that lacks its own file. So `.coderabbit.yaml` is present here only while every fleet repository carries its own `.coderabbit.yaml` on its default branch, setting `reviews.auto_review.enabled`. [`scripts/central_config.py`][central-config-link] `write` adds the file when that holds and removes it when it does not. ## Where the Rules Live @@ -23,7 +23,7 @@ This repository holds configuration only. The rules it serves live in ProjectTem ## Changing the Configuration -Change this file through a pull request, and only alongside the matching change to the ProjectTemplate review policy. A change here alters review behavior across every repository that carries no `.coderabbit.yaml` of its own. The [settings reference][coderabbit-config-link] names each option. +ProjectTemplate writes this repository with [`scripts/central_config.py`][central-config-link]. Make a change there and carry it here by a pull request. Never edit this repository in place. The [settings reference][coderabbit-config-link] names each option. [coderabbit-config-link]: https://docs.coderabbit.ai/reference/configuration @@ -33,6 +33,7 @@ Change this file through a pull request, and only alongside the matching change [agent-policy-default-link]: https://github.com/ptr727/ProjectTemplate/blob/main/spec/agent-policy.default.json [agent-policy-schema-link]: https://github.com/ptr727/ProjectTemplate/blob/main/spec/agent-policy.schema.json +[central-config-link]: https://github.com/ptr727/ProjectTemplate/blob/main/scripts/central_config.py [governance-link]: https://github.com/ptr727/ProjectTemplate/blob/main/GOVERNANCE.md#pr-review-etiquette [repo-config-link]: https://github.com/ptr727/ProjectTemplate/blob/main/docs/repo-config.md [reviewer-reference-link]: https://github.com/ptr727/ProjectTemplate/blob/main/docs/pr-reviewer-reference.md