Skip to content
Versora

Manual

Merge requests

MERGE REQUESTS section in the panel

7 min read

On this page

In a repository connected to a GitLab or GitHub, the left panel gets the MERGE REQUESTS section (on GitHub, PULL REQUESTS). It lists the open merge requests of the remote's project, with each one's state: draft, conflicts, approvals and pipeline. From here you select the commit in the graph, open the review, check out the branch or mark the MR as ready.

The list

Where to find it

  • Left panel: the MERGE REQUESTS (GitLab), PULL REQUESTS (GitHub) or MERGE / PULL REQUESTS (server not recognized yet) section.
  • Click the header to collapse or expand the section. The choice is remembered.
  • Palette (Ctrl+P): "Refresh merge/pull requests".

The section only appears when the remote belongs to a GitLab or GitHub, or to a host the app hasn't recognized yet. Remotes of other registered services (Bitbucket, Gitea, Azure DevOps) don't get the section.

The header

ElementWhat it does
CountHow many MRs the list shows now (with the filter applied). It disappears when the last read failed, because the list may be stale.
Refresh button ("Refresh the merge request list")Reads the list from the server again. It is disabled while the server is rate-limiting requests.
+ button ("Create merge request from feature/login")Opens the creation form for the current branch. See Create merge request.

Mine and All

The bar right below the header has two buttons:

  • Mine: the MRs you created, or where you are an assignee or reviewer (the tooltip says "Created by ana, or where ana is an assignee or reviewer"). It is disabled when the server doesn't report the token's user ("The server didn't say which user owns the token").
  • All: all the project's open MRs.

When the server has more than one registered account, the badge of the account in use appears next to them (tooltip "Account in use: ana (owns the remote (equipe)). Click to change."). See Accounts.

The panel's filter field (Ctrl+Alt+F) also filters the MRs, by number, title, branches and author.

List messages

  • "No open merge requests": the project has no open MRs.
  • "Nothing matches the filter": the filter text doesn't match any MR.
  • "None of the merge requests are yours — see "All" (5)": in Mine, nothing is yours; there are 5 in the project.
  • "Showing the 500 most recently updated; there are more on the server.": the app reads up to 500 open MRs, from the most recently updated to the oldest. Use the filter or the project page for the rest.
  • "Loading…": first read in progress.

What each row shows

PartMeaning
AvatarThe author's initials, in the person's color.
!42 and titleThe number and the title. GitLab draft markers (Draft:, [Draft], WIP:…) are removed from the title, because the chip already says it.
feature/login → mainSource and target branch.
DraftThe MR is marked as draft.
Stack 2/3The MR is part of a stack. See Stacks.
Conflicts"There are conflicts with the target branch".
✓ 1/2Approvals: 1 of 2 required. Without an approval rule, just ✓ 1. Green when complete.
± 1One review requesting changes.
Pipeline iconThe state of the pipeline (GitLab) or of the checks (GitHub) of the last commit. See Pipeline indicators.

Hover over the chips to see the details, for example:

  • "Approved by Ana, Bruno (2 of 2 required)";
  • "The required approval hasn't been given yet" or "None of the 2 required approvals yet";
  • "1 review requesting changes; approved by Ana".

The tooltip of the whole row summarizes the MR and reminds you: "Click selects the commit in the graph; double-click opens the review".

Click and double-click

  • Click: selects in the graph the tip commit of the source branch. If it isn't in the graph, you see "The tip commit of feature/login isn't in the graph. Fetch — or it's hidden by the branch filter."
  • Double-click: opens the MR review in the central area. See Review.

The running pipelines of the visible rows are queried again every 30 seconds, while the window has focus.

Merge request menu

Right-click a row (or use Shift+F10).

ItemWhat it does
Open reviewOpens the review in the app (the same as double-clicking).
Open in browserOpens the MR page on the server.
Copy linkCopies the MR's web address.
Copy Versora link to merge request !42Copies a versora:// link that opens this review in the recipient's Versora. See Windows.
Check out feature/loginBrings the source branch into your working directory (details below). Disabled when the MR comes from a fork.
Open in a worktree…Creates a worktree in a new folder with the MR's head. See Opening the merge request in a worktree.
Get the stack of !42… and Merge the stack up to !42…Only for MRs in a stack. See Getting the stack and Merging the stack.
Mark as ready / Mark as draftGitLab only. Takes the MR out of draft or puts it in draft.

Checking out the merge request's branch

To test the MR on your machine, use Check out feature/login in the menu.

Step by step

  1. Right-click the MR and choose Check out feature/login.
  2. If the branch hasn't been downloaded yet, the app fetches the remote first ("Fetching origin…").
  3. The checkout follows the rule for checking out a remote branch: it creates the local branch tracking the remote one, or uses the local one that already tracks that branch (fast-forwarding it if it is behind).

What Versora does in Git

bash
git fetch --prune --tags origin           # only if the branch isn't in the repository yet
git checkout -b feature/login --track origin/feature/login   # no local branch
git checkout feature/login --             # local branch already exists

The complete behavior, including when the two sides have diverged, is in Checkout.

Caveats and messages

  • "feature/login is already the current branch.": nothing to do.
  • "This merge request comes from a fork: the branch isn't on this remote. Open it in the browser to see how to get it.": the branch is in another repository. To review the code locally, use Open in a worktree…, which fetches the MR's head through the server's special ref.
  • "The branch feature/login doesn't exist on origin.": the source branch was deleted on the server.

How to undo

Ctrl+Z undoes the checkout (and the creation of the local branch), like any checkout. The fetch isn't undone. See Undo.

On GitLab, Mark as draft and Mark as ready change the state directly on the server and show "!42 marked as draft." or "!42 marked as ready.". On GitHub, the same is done through the Draft card in the review's Actions tab (see Merging); the item doesn't appear in the panel menu.

Ctrl+Z doesn't undo this change: it lives on the server. To go back, use the opposite item.

When the list is refreshed

  • when you open the repository tab and when the remotes change;
  • after a fetch, pull or push;
  • when you come back to the tab, if the list is more than 2 minutes old;
  • with the refresh button and with the palette's "Refresh merge/pull requests".

Caveats and messages

  • "Couldn't tell which service gitlab.exemplo.com is. If it's GitLab or GitHub, register the server with its type and an access token (api scope on GitLab, repo on GitHub). If it's another service, register it with the right type and this notice goes away.": the remote's host isn't in Git servers. The Git servers button opens the registration.
  • "Integration off: register an access token for gitlab.exemplo.com with the api scope to see the merge requests and the state of the pipelines.": the server is registered without a token. On GitHub the message talks about the state of the checks.
  • "Server unavailable." followed by the reason: the server didn't respond. Use Try again.
  • "GitLab rejected the token registered for gitlab.exemplo.com (401): it may be wrong, expired, or revoked. Update it in Git servers.": the notice has Git servers and, for a revoked OAuth sign-in, Sign in again. Account for this repository… may also appear.
  • "Rate limit reached. Next attempt at 14:32.": the server rate-limited the account. The bar shows "paused until 14:32" ("The server rate-limited the requests; the list may be out of date."). The integration comes back on its own.
  • "GitLab at gitlab.exemplo.com answered "not found" (404) for equipe/app. …": check the remote URL or whether the token has access to the project.
  • Server token and type: Git servers.
  • Account used in each repository: Accounts.
  • Stack chip and navigation: Preferences › Stacks (Stacks).
  • Policy: allowed_servers restricts the API servers. See Administrators.

See also