Skip to content

ManualStart here

What is Berrit?

Berrit gives your team a place to review code and takes care of getting the changes you approve onto your shared branch.

If your repository is on GitHub, you can leave it there and keep working in the same local clone. When you’d like a teammate to look at your code, you send it to Berrit for review. We call that proposal a change. If someone sends you a link to a change request (or CR), that’s the page where you can read the diff and discuss it.

The branch you want the code to go on is the target branch. For the examples here, we’ll use main. To land the change is to put the code on that branch. Until then, your teammates can carry on landing their own work. That’s why the code you eventually test together can be a little different from the code you first sent for review.

Follow one change from proposal to landing

Section titled “Follow one change from proposal to landing”

Let’s say we’re adding a --timeout option to a command-line tool. If a request takes too long, we want the tool to give up.

  1. You push your feature branch to Berrit, which gives you change #42. You can send your teammate a link to #42 and they’ll see the diff for the first revision (the version you just pushed).
  2. Your teammate asks, “What happens if I set the timeout to zero?” You decide that zero disables the timeout, write a test for that case and push again. Now the page shows revision 2. Your teammate’s question is still there. Choose Return to reviewers when you’d like them to take another look. Changes and revisions
  3. They read the test, resolve the thread and approve. You can now choose Land. The approval tells Berrit they’re happy with the code. Choosing Land asks Berrit to queue it once the requirements are met.
  4. Each target branch has a queue called the merge train. The train builds a candidate commit from the current main, any changes ahead of yours, and your timeout change. If your team requires tests here, this is the commit they run on. Once the tests pass and the change lands, fetch main and you’ll have the timeout option. How the merge train works

You can start with code review alone. By default another eligible member of your organisation has to approve the change, and you need to resolve any blocking discussions. If you’re trying this on your own, choose who can approve your first change. When you’re ready to require tests, put a check in checks.toml and connect the system that runs it, such as GitHub Actions.

If you’re setting this up for your team, start by connecting the repository. You can then decide whose approval you need and which tests you want to run. Connect a GitHub repository or connect with SSH or HTTPS.

If your team already uses Berrit, you can push a feature branch and open the link that comes back. Send your first change. If a teammate sent you a link, you can read the diff and send your review from your browser. Review a change.

You can also try this in the Berrit playground. The sample repository runs in your browser, so you can send, review, revise and land a change before connecting your own repository.