Review
Merge request review in the app
5 min read
Versora's review brings into the app what you would do on the merge request page: read the description, look at the commits, go through the diff with each line's comments, write a draft review, suggest changes, approve and merge. The diff uses local Git whenever possible, with the same syntax highlighting as the rest of the app, and works the same on GitLab (including self-hosted) and on GitHub.
The review takes up the central area of the repository tab, in place of the graph. The left panel and the changes panel stay at hand.
| Path | How |
|---|---|
| MERGE REQUESTS section in the panel | Double-click the MR, or the MR menu › Open review. See MERGE REQUESTS section. |
| Palette (Ctrl+P) | "Review !42: Corrige o login" (one item per open MR in the repository), or "Open merge request review…", which asks for the number. |
| Graph | The "!42" chip at the start of the message of a commit that came in through an MR ("Click to open the review."). See Graph. |
| Notifications | Clicking an MR notification opens the review in the app, when the repository's integration is ready; otherwise, it opens in the browser. See Notifications. |
| MR inbox | Click or Enter on an item. See MR inbox. |
versora:// link | An MR link copied by a teammate ("Copy Versora link to merge request !42") opens the review directly. See Windows. |
| Stack navigation | The "← Previous" and "Next →" links in the header of a stacked MR. See Stacks. |
- Palette (Ctrl+P) › "Open merge request review…" (on GitHub, "Open pull request review…").
- In the Review merge request dialog, type the number in Number (!) (e.g.,
42;!42and#42also work). - Click Open review.
A number that isn't a positive integer shows "Invalid number.".
Tip
The review needs the integration to be ready. Without a token, the app warns "To review, register an access token for gitlab.exemplo.com with the "api" scope." and opens Git servers. In a repository without a recognized GitLab or GitHub: "This repository isn't linked to a recognized GitLab or GitHub."
| Part | What it is |
|---|---|
!42 and the title | The MR's number and title (without the draft markers). |
| State | Open, Merged, Closed or Locked. |
| Chips | Draft and Conflicts. |
| Author sentence | "Ana wants to merge feature/login into main" (open) or "Ana asked to merge feature/login into main" (closed or merged), with "opened…", "merged by…" and "updated…". |
| Stack navigation | For MRs in a stack: "Stack", the stack's MRs, "2 of 3", "← Previous" and "Next →". |
| Refresh button ("Refresh") | Reads everything from the server again. |
| Open in a worktree… | See Opening the merge request in a worktree. |
| Open in browser | The MR page on the server. |
| Close the review | Goes back to the graph. |
While an action runs, the header shows what's happening (for example, "Submitting the review…"). With the server rate-limiting requests, you see "server paused (rate limit)".
| Tab | What it has | Page |
|---|---|---|
| Overview | Description, activity (timeline of comments), pipeline, approvals, merge state, reviewers, assignees and labels. | Overview tab |
| Commits | The MR's commits. Clicking shows the commit in the graph. | Commits, ranges and versions |
| Changes | The file list with the viewed mark and the diff with each line's comments. | Changes tab |
| Actions | Approval, merge, scheduling, merge train, dependencies, the server's AI, draft and branch. | Finishing and approving and Merging |
The number next to each tab counts the threads (without system events), the commits and the files.
To the right of the tabs, with the MR open, is the review button:
- Review…: with no pending comments. "Sends a summary with the verdict (approve, comment, or request changes)".
- Finish review (2): with 2 comments saved as drafts. "Publishes the pending comments at once, with a summary and the verdict".
Next to it, the "2 pending comments" counter and, when there are chosen suggestions, the suggestion batch. See Comments and draft review and Finishing the review and approving.
Clicking a commit on the Commits tab shows the commit in the graph and hides the review. At the bottom of the graph you see the Back to the review of !42 button, which brings the review back exactly where it was; the × next to it closes the review. The text you were writing in the comment boxes isn't lost when you switch tabs, files or screens.
- When it opens, the app reads the MR, the commits and the comments. If you reopen it within 15 seconds, it uses what it already had.
- When the Versora window gets focus again (after at least 20 seconds), the app checks whether the MR changed on the server (a light call). Changed: it reloads; unchanged: it keeps what it has.
- The refresh button in the header reads everything again right away.
- If the last refresh fails, a bar shows the error, with Try again and, for credential problems, Git servers. The data on the screen may be stale until then.
The diff on the Changes tab comes from local Git whenever possible: the app fetches the MR's commits (also from a fork) and compares them in your repository. That way the diff has the same highlighting and the same options as the rest of the app, even in large MRs. When that isn't possible (the commits didn't come from the remote, the server hasn't reported the diff version yet), the app uses the hunks the API returns and says why. See Changes tab.
Opening the review doesn't change your working directory or your branches. To build the local diff,
the app fetches the MR's commits from the remote (the source branch and, when needed, the MR's
special ref on the server, such as refs/merge-requests/42/head on GitLab or refs/pull/42/head on
GitHub). Comments, approvals and the merge go through the server API.
What you publish in the review (comments, approval, merge) stays on the server and isn't reverted by Ctrl+Z. Before publishing, draft comments can be deleted one by one or discarded together. See Comments.
- "Loading !42…": first read.
- "GitLab couldn't find merge request 42 in equipe/app (404). It may have been deleted, or the token has no access to the project.": check the number and the token's access.
- "Wait for the current operation to finish.": there's already an action running in the repository.
- Credential errors (401, 403) show Git servers next to Try again.
- Server credential: Git servers and Accounts.
- Code font: Preferences › Navigation and appearance (also applies to the review diff). See Customization.
- Review shortcuts (V, X, C): Preferences › Keyboard shortcuts.
Pages in this section
- Overview tabWhat the review's Overview tab shows - description, activity with comments and events, general comment, pipeline, approvals, merge state, reviewers, assignees and labels.
- ReviewersThe review's Reviewers box - each reviewer's state, re-requesting the review, removing with undo and adding anyone from the server.
- Comments, threads and draft reviewHow to comment on a diff line, keep comments in a draft review or publish them right away, reply, quote, resolve threads and paste images, with the differences between GitLab and GitHub.
- Finishing the review and approvingHow to publish the review at once with a summary and the verdict (comment, approve or request changes), discard the pending review and approve or revoke the approval from the Approval card.
- Changes tab: files, diff and ViewedHow to go through a merge request's files in the review - the viewed mark that resets on its own when the file changes, the progress, grouping by folder or by owner, the unified or side-by-side diff and where the diff comes from.
- Suggesting and applying changesHow to write a suggested change in a line comment, adjust how many lines it replaces and apply one or several suggestions in a single commit, on GitLab through the server and on GitHub through the app.
- Commits, ranges and versionsHow to review a merge request commit by commit, by a range of commits or by comparing two versions (interdiff), see only what changed since your last review and comment on a commit or a version.
- Filtering comments and botsHow to filter the review's threads by state (unresolved, resolved), by author and by hiding bots, and how to mark other accounts as bots.
- Opening the merge request in a worktreeHow to get a merge request's head, also from a fork, into a new folder next to the repository, with a branch that tracks the source one, without touching the folder you're working in.