Merge requests
Merging
8 min read
When the merge request is ready, Versora itself does the merge, in the review's Actions tab. The Merge card shows whether something blocks the merge (approvals, pipeline, threads, conflicts), lets you choose the method and the messages and, if the pipeline is still running, schedules the auto-merge for when it passes. The merge is done by the server: your local repository doesn't change until the next fetch.
- MR review › Actions tab › Merge card.
- MR review › Overview tab › Merge box in the right column › See merge actions button.
To open the review, double-click the MR in the left panel. See Review.
The Actions tab has, in this order: Approval (see Finishing the review and approving), Merge, Merge scheduling, Merge train or Merge queue, Dependencies, GitLab Duo or GitHub Copilot, Draft and Branch.
| Text | Meaning |
|---|---|
| "Nothing blocks the merge." | All good: the Merge button is enabled. |
| "GitLab is still checking whether this can be merged." | The server is still working out whether the branch goes in without conflicts. The Refresh button next to it reloads. |
| "Merge scheduled: it happens on its own once the requirements are met." | There's an auto-merge scheduled (on GitHub: "Auto-merge enabled: it happens on its own once the requirements are met."). |
| "In the merge train: position 2 of 3" | The MR is already in the queue. See Merge train. |
| "Depends on !12, still open: the merge can only happen after it." | There's an open dependency. See Dependencies. |
| List with ⚠ | The blockers and the warnings (table below). |
| Option | Service | What it does | Default |
|---|---|---|---|
| Method (Merge commit, Squash, Rebase) | GitHub | How the commits go into the target. Only the methods the repository allows appear. | Merge commit, if allowed |
| "Project method: …" | GitLab | Shows the project's method: "merge commit", "merge commit, with the branch rebased first (semi-linear)" or "fast-forward (no merge commit)". It can only be changed in the project settings. | the project's |
| Squash commits into one | GitLab | Combines the MR's commits into one. When the project enforces the option, the text becomes "… — set by the project" and the checkbox is locked. | the project's |
| Delete the branch feature/login from the server after the merge | both | Deletes the source branch on the server after the merge. On GitHub, disabled for a fork branch ("The branch is in a fork: it can't be deleted from here"). | the project's / the MR's |
| Commit title | GitHub (except Rebase) | Title of the merge or squash commit. | the server's default text |
| Commit message | GitHub (except Rebase) | Body of the commit. | the server's default text |
| Merge commit message | GitLab (except fast-forward) | Message of the merge commit. | the server's default text |
| Squash commit message | GitLab, with squash | Message of the single commit. | the server's default text |
"Blank fields use the GitLab default text." (or GitHub): leave it empty to keep the text the server generates. Every time the MR receives a push, the options go back to the project default.
- Open the MR review and go to the Actions tab.
- Check the top of the Merge card. If there are blockers, resolve them first (or schedule the auto-merge, if the only blocker is the pipeline).
- Adjust the method, squash, branch deletion and messages.
- Click Merge.
- The Merge !42? dialog summarizes:
feature/login → main, the method ("Method: Squash." on GitHub; "The commits will be squashed into one." or "Project method: …" on GitLab), whether the branch will be deleted ("The branch feature/login will be deleted from the server." or "The branch feature/login stays on the server.") and the warnings. - Confirm with Merge. The bar shows "Merging…".
- At the end you see "!42 merged into main. Fetch to see the result in the graph." (or, with the deletion, "… The branch feature/login was deleted from the server. …").
When the merge is only waiting for the pipeline (GitLab) or something is missing that the server resolves on its own, such as approval or checks (GitHub), the card offers to schedule the merge:
- GitLab: Merge when pipeline passes. The Schedule the merge of !42? dialog explains "GitLab merges it on its own when the pipeline passes." and confirms with Schedule merge. At the end: "Merge scheduled: it happens when the pipeline passes."
- GitHub: Enable auto-merge (the repository must allow auto-merge). The dialog explains "GitHub merges it on its own once the required approvals and checks are met." At the end: "Auto-merge enabled."
With the merge scheduled, the Cancel auto-merge button undoes the scheduling on the server ("Auto-merge canceled.").
The auto-merge button only appears when it makes sense: on GitLab, with the pipeline running and no blocker other than the pipeline; on GitHub, with no conflicts, out of draft and with something still pending.
Tip
In a project with a mandatory merge train, scheduling the auto-merge puts the MR in the train. See Merge train and merge queue.
The server says what's missing, and the app shows each reason on the card (and in the tooltip of the disabled Merge button):
| Message | What to do |
|---|---|
| "This merge request has already been merged." | Nothing: it's already in. |
| "The merge request is closed." / "The merge request isn't open." | Reopen it from its page, if needed. |
| "The merge request is locked (GitLab is processing a change to it)." | Wait a few seconds and refresh. |
| "There are conflicts with the target branch. Resolve them on the source branch before merging." | Merge or rebase the target into the branch and push. See Conflicts. |
| "The merge request is a draft. Mark it as ready before merging." | Use the Draft card. |
| "Approvals required by the project rules are missing." / "1 approval missing (the project requires 2; 1 so far)." | Request the review (see Reviewers). |
| "The project requires the pipeline to pass before merging, and it failed." (and the variations running, pending, canceled, waiting for a manual action, skipped, no pipeline) | Fix the pipeline or schedule the auto-merge. See Pipelines. |
| "The pipeline is still running." | Wait or schedule the auto-merge. |
| "There are unresolved threads, and the project requires all of them to be resolved before merging." | Resolve the threads (see Comments). |
| "The project merges by fast-forward: the source branch must be rebased onto the target." | Rebase the branch and force push (see Merge and rebase). |
| "The merge depends on another merge request that hasn't been merged yet." | See Dependencies. |
| "A reviewer requested changes." / "Changes requested by Ana." | Address the changes and request the review again. |
| "External status checks haven't passed yet." | Wait for GitLab's external checks. |
| "The title or description must mention a Jira issue." | Include the issue key in the title or the description. |
| "The source branch no longer exists or has no commits." | Push the branch again. |
| "The project's security policies block the merge." | Talk to whoever maintains the project. |
| "There are files locked by someone else in this merge request." | Ask for the file to be unlocked. |
| "The title doesn't follow the pattern required by the project." | Edit the title on the MR page. |
| "The merge is only allowed after a time set on the merge request." | There's a schedule. See Scheduling. |
| "You don't have permission to merge in this project." | Ask someone who has permission. |
| "Checks required by the branch protection have failed." / "… are still running." | GitHub: fix or wait for the checks. |
| "The target branch protection blocks the merge: required approvals or checks are missing." | GitHub: satisfy the branch protection. |
| "The source branch is behind the target, and the branch protection requires it to be up to date." | GitHub: update the branch with the target. |
Some warnings don't block, but appear on the card and in the dialog: "The latest pipeline failed (the project doesn't require it to pass for the merge)." and "Some checks didn't pass (they aren't required for the merge)."
The Draft card shows "This merge request is a draft: it can only be merged after you mark it as ready." or "Mark it as draft to show it isn't ready to merge yet.", with the Mark as ready or Mark as draft button. It works on GitLab and GitHub. At the end: "!42 marked as ready." or "!42 marked as draft.".
The Branch card helps you test the MR on your machine: "Bring feature/login into your working directory to test the changes." The buttons are Check out feature/login, Open in browser and Copy link. With the branch in a fork, you see "The source branch is in a fork: it isn't in origin." and the checkout is disabled; use Open in a worktree. The checkout follows the Checkout rules.
Nothing in your local repository: the merge happens on the server, through the API. The request carries the tip commit the review showed. If the branch received commits after that, the server refuses (see the messages below) and nothing changes.
After the merge, to see the result in the graph, fetch:
git fetch --all --prune --tags
Ctrl+Z doesn't undo a merge done on the server. To go back, revert the merge commit (GitLab and GitHub have the Revert button on the MR page) and open an MR with it. A scheduled auto-merge is undone with Cancel auto-merge.
- "The source branch got new commits after you opened the review (409). Refresh the screen and check the new changes before continuing.": someone pushed commits. Refresh the review and review what changed (see Changed since your last review).
- "GitLab can't merge the branch: it conflicts with the target (406). …": resolve the conflicts on the source branch.
- "GitLab didn't accept the merge right now: …" (405): the project may require a merge train. The app explains and offers Add to merge train. See Merge train and merge queue.
- "You don't have permission to do this in this project (403). …": write or merge permission on the target branch is missing.
- "GitHub didn't confirm the merge.": check the pull request page.
- "The merge went through, but the branch feature/login wasn't deleted: …" and "The source branch is in another repository (fork) and wasn't deleted.": the merge went in; delete the branch manually, if you want.
The merge rules (method, squash, required approvals, mandatory pipeline, resolved threads) belong to the project, on the server. The app has no preference for them.