authors
Scopes can be matched to specific pull request authors. This can be used to target PRs opened by a specific bot or specific team members. Note that paths are still required.
# CODEREVIEW.toml
[[scopes]]
name = "dependabot"
paths = ["**/*"]
authors = ["dependabot"]
reviewers = ["dev1", "dev2"]
Authors can also reference aliases.
# CODEREVIEW.toml
[aliases]
junior-devs = ["junior-dev1", "junior-dev2"]
senior-devs = ["senior-dev1", "senior-dev2"]
[[scopes]]
name = "junior-review"
paths = ["**/*"]
authors = ["$junior-devs"]
reviewers = ["$senior-devs"]
Authors can also reference teams with @org/team-slug. Team membership is synced from your platform, so the scope follows the team as people join and leave — there is no username list to keep up to date.
# CODEREVIEW.toml
[[scopes]]
name = "contractor-review"
paths = ["**/*"]
authors = ["@acme/contractors"]
reviewers = ["@acme/leads"]
You can also use negated authors (prefixed with !) to exclude specific authors from matching a scope. This is useful when you want a scope to apply to all PRs except those from certain authors.
# CODEREVIEW.toml
[[scopes]]
name = "human-review"
paths = ["**/*"]
authors = ["!dependabot", "!renovate-bot"] # Excludes bot PRs
reviewers = ["dev1", "dev2"]
The "*" wildcard is not supported in authors — a scope with no authors already applies to every author.