Getting started / 14-day trial for new users

Land your
first change.

Three questions, then only the steps that apply to you: connect a repository, send a change, land it.

Start your 14-day trial
Your setupthe guide below follows your answers
Where does the repository live?
How do you send your work?
What runs your checks?

01 / Connect

Connect your
repository.

Create or join an organisation. An owner or admin can choose New repository on its dashboard, enter the remote URL and default branch, then select a connection.

GitHub App
Install from the repository dialog. Connects same-repository pull requests and GitHub Actions results.
SSH
Add the organisation’s public key to your Git host with write access.
HTTPS
Supply a username and write-capable token or password.

Allow Berrit to write the target branch and refs/berrit/*, including through branch protection. GitLab, Gitea and Forgejo work as Git remotes; their native reviews and checks need separate integration.

02 / Send

Send
a change.

No new CLI required.

Open the repository’s Push dialog for commands filled in for you. When prompted, use any username and your Account → API keys key as the password.

Replace ORG/REPO with yours. Git targets your repository’s default branch. Start with a local feature branch containing your work.

Replace ORG/REPO with yours. The jj example uses main.

Code scrolls sideways on smaller screens.

Git

One branch → one change
git remote add berrit https://app.berrit.dev/git/ORG/REPO
git push -u berrit feature/parser

Push a new feature branch. No Change-Id hook needed.

jj

One commit → one change
jj git remote add berrit https://app.berrit.dev/git/ORG/REPO
jj gerrit upload --remote berrit --remote-branch main

Send a linear stack. jj supplies the stable change IDs.

Have Berrit’s CLI? berrit send sends the same commits from a jj or Git working copy, and berrit init gives Git commits their Change-Id.

Push to your Git host, then choose Changes → New change to import the branch. With GitHub, you can also import a pull request from the same repository.

Nothing to install and no new remote: the branch you pushed becomes one change.

03 / Review & land

Review
and land.

  1. Get the required review

    By default, another eligible human member must approve and blocking threads must be resolved. Invite reviewers in organisation settings.

  2. Require candidate checks

    No external checks are configured by default. Add a required train check in Settings → Configuration to test the candidate before it lands.

  3. Choose Land when ready

    Berrit waits for the required approvals and checks. Land the stack includes open ancestors; every change must be ready. Follow progress in the Train tab.

Connect your checks

04 / Checks

Connect
your checks.

Connect a system that runs checks and reports their results. Berrit uses those results to gate landing.

GitHub Actions results reach Berrit through the GitHub App. Connect with the App, or report from your CI the way another system does.

The GitHub App reads results from a test pull request for the train candidate.

  1. Connect with the GitHub App

    Choose it when adding the repository. It reads the candidate pull request’s check results.

  2. Name the required check

    Add the TOML below in Settings → Configuration or berrit.toml on the target branch. Match the GitHub job name exactly, including matrix suffixes.

  3. Test the candidate

    Use a pull_request workflow with an explicit head-SHA checkout. Replace ./scripts/ci and prepare your test dependencies. No Berrit API key belongs in this workflow.

Choose an available check app for your system. A reporting integration runs the jobs and sends Berrit their results.

  1. Listen for your checks

    The app follows /api/v1/events. Each check_requested event names the app, check, stage and commit to test.

  2. Run that exact commit

    For train checks, the integration fetches refs/berrit/candidates/<sha> and tests that exact commit. Reporting credentials stay with the app.

  3. Report what happened

    The app posts the commit, check name and actual passed, failed or error outcome to /api/v1/repos/ORG/REPO/checks with the app’s token. A person’s token cannot report checks.

Reconnect streams with a fresh token and the last event ID. A new request with again needs fresh results, even for the same SHA. The adapter owns dispatch, retries and job cancellation.

No external checks are configured by default. Until you add one, review is the only gate: an approved change that asked to land goes through the train untested.

When you are ready, add a required train check in Settings → Configuration to test the candidate before it lands, and come back here for the system that will report it.

Code scrolls sideways on smaller screens.

berrit.toml

Required landing check
[[check]]
name = "ci"
app = "[email protected]"
on = ["train"]
paths = ["**"]
required = true
timeout = "45m"

GitHub workflow

On the target branch
name: Berrit CI
on:
  pull_request:
permissions:
  contents: read
jobs:
  ci:
    name: ci
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          persist-credentials: false
      - run: ./scripts/ci

Send a change, get approval and choose Land when ready. Follow its check link in the Train tab. This workflow also runs on ordinary pull requests: on = ["train"] selects results Berrit requires, not which GitHub jobs run.

When a check must pass

push
The submitted revision, for early feedback.
approved
That revision, when its review gate first passes.
train
The combined candidate that will land.

Use the rules designer to choose required approvers, path rules and validation stages. It shows which requirements apply to each example change, and gives you complete berrit.toml and OWNERS files for your choices.

Design your rules

Paths and stages select required results; they do not suppress jobs scheduled elsewhere. A passing batch validates the final tip, not each intermediate commit independently.

05 / Reviews from apps

Reviews from
apps and GitHub.

Optional. By default, another human member must approve.

Name a review app in your rules

Choose an available review app and name it in your rules. An app counts only where your rules and OWNERS explicitly allow it; adding an app rule does not remove other requirements.

An app votes as itself, an assistant as you

Apps publish their own findings and votes through the API. An assistant you authorise acts as you instead. Request-changes votes block landing until replaced or dismissed.

Reviews written on GitHub can count

With [github] reviews_as_votes = true, eligible connected members’ GitHub reviews on the current revision can count as Berrit votes. This is off by default.

Choose a reviewer in your rules

Need help getting started?

Talk to us
Start your 14-day trial