Skip to content
Versora

Manual

Review

Merge request review in the app

5 min read

On this page

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.

How to open it

PathHow
MERGE REQUESTS section in the panelDouble-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.
GraphThe "!42" chip at the start of the message of a commit that came in through an MR ("Click to open the review."). See Graph.
NotificationsClicking 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 inboxClick or Enter on an item. See MR inbox.
versora:// linkAn MR link copied by a teammate ("Copy Versora link to merge request !42") opens the review directly. See Windows.
Stack navigationThe "← Previous" and "Next →" links in the header of a stacked MR. See Stacks.

Opening by number

  1. Palette (Ctrl+P) › "Open merge request review…" (on GitHub, "Open pull request review…").
  2. In the Review merge request dialog, type the number in Number (!) (e.g., 42; !42 and #42 also work).
  3. 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."

The header

PartWhat it is
!42 and the titleThe MR's number and title (without the draft markers).
StateOpen, Merged, Closed or Locked.
ChipsDraft 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 navigationFor 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 browserThe MR page on the server.
Close the reviewGoes 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)".

The tabs

TabWhat it hasPage
OverviewDescription, activity (timeline of comments), pipeline, approvals, merge state, reviewers, assignees and labels.Overview tab
CommitsThe MR's commits. Clicking shows the commit in the graph.Commits, ranges and versions
ChangesThe file list with the viewed mark and the diff with each line's comments.Changes tab
ActionsApproval, 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.

Review… and Finish review

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.

Going to the graph and back

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.

How the review stays up to date

  • 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.

Diff from local Git or from the server

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.

What Versora does in git

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.

How to undo

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.

Caveats and messages

  • "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.

See also

Pages in this section