Templates

Shareable configurations that can be synced to multiple repos automatically.

Templates are synced to .codereview/<template>.toml at the root of the repo.

To use a template that has been synced to a repo, you can use the extends setting in the CODEREVIEW.toml file.

extends = [".codereview/base.toml"]

# Additional scopes appended to the template scopes
[[scopes]]
name = "new-scope"
# ...

Templates will likely be matched to repos by using CEL expressions on repo topics, custom properties, or name.

  • repo.topics.contains("pullapprove-python")

If you prefer, you can also use something like Terraform to manage the syncing of templates across multiple repos.