Set review policy
set-review-policy-toolChoose how much review this team's pull requests need. Once a policy is on, Coderbuds decides a tier for every pull request it sees opened or pushed to — no review, an AI review, one review, or a careful review — and says which, and why, on its pull request comment. Nothing is enforced on GitHub.
policy is one of:
skip_trivial— docs-only and tests-only changes skip review; every other change gets one.risk_based— trivial changes skip review, small code changes need only an AI review, and changes tosensitive_pathsor over the team's size standard need a careful review.off— no policy; Coderbuds says nothing about review.
Under every policy, a person always reads changes to CI, CODEOWNERS, dependency manifests and lockfiles, built bundles and agent instructions, a newcomer's first change, and an agent's change nobody has read.
sensitive_paths are folders (app/Billing/) or patterns where * reaches into
subfolders (database/migrations/*). Omit them to keep the team's current list; pass an
empty list to clear it.
Only call this when a person on the team has asked for it, and set what they said. Only the team owner can change it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | The policy the team asked for, or off. | |
| repository | No | Optional "owner/name" repository slug, used only to bind the session to the owning team. | |
| sensitive_paths | No | Paths that need a careful review under risk_based. Omit to keep the current list; an empty list clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name. | |
| policy | No | The policy now in force, or null when it is off. | |
| message | Yes | Human-readable confirmation. | |
| previous_policy | No | The policy before this call, or null when there was none. | |
| sensitive_paths | Yes | The sensitive paths now in force. |