template

If a CODEREVIEW.toml file is marked as a template, it will not be processed as a live configuration file. Other CODEREVIEW.toml files can extend a template file, but the template file itself will not be used to review PRs.

Like any extends target, a template's filename must start with CODEREVIEW (e.g. CODEREVIEW.base.toml).

# CODEREVIEW.base.toml
template = true

[[scopes]]
# ...
# app/CODEREVIEW.toml
extends = ["/CODEREVIEW.base.toml"]

[[scopes]]
# ...

Paths are relative to the consuming config

A template has no inherent location, so the paths of any scope it defines are evaluated relative to the directory of the config that extends it — not the template's own location. The same template extended from app/CODEREVIEW.toml and lib/CODEREVIEW.toml matches files under app/ and lib/ respectively.

This differs from a non-template extends target, whose scope paths stay relative to its own directory.