Team rules
Teams put rules in the file .repotailor.yml in the repository. It is a lower bound, not a server: whoever has the file gets the rules.
- Edition
- Free
The schema
Schema 1: protected branches, commit convention, branch names, templates, hooks, AI switch; each rule off, warn or block.1
version: 1
protected: { branches: [main, "release/*"] }
commits: { convention: conventional, signed: warn }
branches: { pattern: "^(feature|fix)/[a-z0-9-]+$", level: warn }
ai: { enabled: true }
Hooks from the file
Hooks from .repotailor.yml run only after your approval; the approval applies to the hash of the file and ends as soon as it changes.
Checking
On the command line: repotailor rules check --message "fix: handle empty input"; as a commit-msg hook repotailor rules check --message-file "$1". The command exits with code 1 if a block rule is violated.
Lockfile commands
The optional key lockfiles overrides the command that regenerates a lockfile; it is split as sh would, pipes are errors.