ManualConfiguration
Configure berrit.toml
You can keep the settings for a branch in the repository and review edits to them just like any other change.
You don’t need a configuration file to send your first change. When you do want to change the defaults, there are two files Berrit looks for at the root of the target branch (the branch receiving the change). Review rules, train settings and GitHub settings go in berrit.toml. The tests you want Berrit to wait for go in checks.toml.
Add the file
Section titled “Add the file”-
Create
berrit.tomlat the root of the repository. -
Include just the settings you want to change. For example, our team wants another look whenever the author changes the patch. We also have enough CI capacity to test two train candidates at once. Those are independent choices, so you can use either section on its own.
berrit.toml [review]approval_after_edit = "reset"[train]window = 2 -
Send the file for review against the branch you want to configure. Berrit reads the tip of the target branch, so the existing rules apply to this edit until it lands.
Choose your settings
Section titled “Choose your settings”| Section | What it controls |
|---|---|
[review] |
With approval_after_edit = "keep", existing approvals still count after the author edits the patch. Choose "reset" if you want fresh approval for the edit. A rebase that leaves the patch the same keeps approvals under either setting. By default, people can’t approve their own changes (self_approval = false) and blocking discussions must be resolved (require_resolved_threads = true). |
[[rule]] |
Which paths a rule covers, who can approve, and how many approvals you need. By default, every path needs one eligible member’s approval. |
[train] |
Keep window = 1 to test one candidate at a time. A single candidate can already cover several queued changes. Raise it (up to 8) if you have capacity to test more candidates in parallel. |
[github] |
mirror_prs opens pull requests for changes sent to Berrit. reviews_as_votes lets eligible members’ reviews on GitHub count in Berrit. Both default to true and can be turned off independently. |
If you want to limit how many GitHub workflows Berrit starts for a target branch, set at_once (1–100) under [github]. Leaving it out puts no limit on dispatches from Berrit. GitHub may still queue work while its runners are busy.
Those settings all belong in berrit.toml. To require a test, add a [[check]] table to checks.toml beside it. The table tells Berrit which result to wait for at push, approved, or train. If there’s no checks.toml, there are no external checks by default. Check fields
Write a review rule or require a GitHub Actions workflow.
What if I’m the only reviewer?
Section titled “What if I’m the only reviewer?”If you want someone else to sign off, keep the defaults and invite a teammate under the organisation’s Settings → People. For a personal repository where you want to review and land your own changes, set self_approval = true under [review]. You still have to approve the change yourself, and your vote only counts towards rules you’re eligible to satisfy. A named agent can’t approve its own work.
This setting introduces a small bootstrapping problem. If you submit it as a change, the old rules still require someone else to approve it. If you’re the only member, use the default branch’s Settings → Configuration editor to enable Authors may approve their own. Saving there commits directly to the branch.
A release branch cut from that commit inherits the setting. An existing release branch keeps its own copy. Have an eligible teammate review the update there or, if you’re its only maintainer and have permission to write directly, commit the setting to that branch on your Git host.
Check which settings apply
Section titled “Check which settings apply”As an owner or admin, open Settings → Configuration to see which settings Berrit is using on the default branch and any errors at its tip. Berrit reads both files from the same commit. If it can’t parse one of them, it walks back through first-parent history and uses the first valid configuration it finds. If there’s none within reach, landing stays blocked until you fix the configuration.
To change the default branch’s settings here, select Edit, then Save, enter a commit title, and choose Create. Berrit writes both files straight to the default branch, skipping review and the train. Saving this way replaces any comments and formatting you added by hand.
If your checks are still in berrit.toml
Section titled “If your checks are still in berrit.toml”Move the [[check]] tables to checks.toml and remove them from berrit.toml in the same commit. If Berrit finds checks in the old location, it stops there, even when looking back for a valid configuration. Going back any further could let code land without the tests you meant to require.
If landing is already blocked, an owner or admin can use Settings → Configuration to repair the default branch. Check that the editor has all the rules and checks you want before you save. On another target branch, a maintainer with write access can commit the repair directly on the Git host.