ManualChanges and reviews
Review a change
How to leave a question on a line of code and let the author know when you’ve finished reviewing.
A teammate has added a --timeout option and asked you to review it. The code accepts a number, but what happens if you pass zero?
Leave feedback on a line
Section titled “Leave feedback on a line”- Open the change (the work you’ve been asked to review) from Your turn on your dashboard, or use the link your teammate sent.
- Under Files, find the line that parses the option. Use the comment button beside the line number, or drag across the line numbers if the question applies to a range.
- Write your question (“Should
--timeout 0exit immediately or disable the timeout?”) and select Save draft.
Only you can see the draft. If you find something else while reading the tests, save another comment and send both together.
If you’d rather try --timeout 0 before commenting, open Fetch on the change and pick Git or jj. The commands include the commit SHA for the current revision. Check its number against the revision you’re reviewing if the author has sent more edits since you started.
Publish your review
Section titled “Publish your review”When you’re done reading, open Review. You’ll see your drafts there, along with space for a message about the whole change. If you just want to leave an observation, that general message starts resolved. A comment on a file line opens a thread that normally needs resolving before landing. Choosing No vote or Approve leaves that thread open. Choose your vote and select Send review.
| Vote | When to use it |
|---|---|
| No vote | You just want to send your comments. Any vote you’ve already cast stays as it is. |
| Request changes | You’ve found something the author needs to fix before this can land. The change stays blocked until you change your vote or an organisation owner or admin dismisses it. |
| Approve | You’re happy with the change. Your vote counts towards any review rules that accept you as an approver. |
Pick up the next revision
Section titled “Pick up the next revision”Say the author replies that zero disables the timeout and adds a test for it. When they push that version (a new revision) and choose Return to reviewers, it’s your turn again. Open Files → Compare → Since your review to see what changed since the version you read. Choose The whole change if you want to read the parser and its new test together. If a discussion appears on a different line after an edit, you can still select the original revision to see the code you commented on.
If the test answers your question, select Resolve on the thread. By default, a thread you open in Berrit must be resolved before the change can land, even if you’ve already approved it. If you requested changes earlier, you can now send a review with Approve. Once the review requirements are met, the change can go on to the merge train.