Merge requests
Merge requests
3 min read
Versora talks directly to the GitLab and GitHub API. With the server registered, you see the repository's merge requests in the left panel, create a merge request from the branch, review the code in the app itself and merge it, including through a merge train. All of this also works with a self-hosted GitLab on the company network.
The two services have the same concept with different names. The app uses each one's term, in English, in every interface language:
| GitLab | GitHub | |
|---|---|---|
| Name | merge request | pull request |
| Number prefix | !42 | #42 |
| Section title in the panel | MERGE REQUESTS | PULL REQUESTS |
| Continuous integration state | Pipeline | Checks |
In this manual, "merge request" and "MR" also cover the GitHub pull request. When something exists in only one of the services, the page says so.
The integration turns on by itself when the repository's remote points to a server registered in Git servers (key icon on the tab bar) with the right type and a credential:
- GitLab: personal access token with the
apiscope, or the Sign in with GitLab sign-in. - GitHub: token with the
reposcope. A fine-grained token may also need "Checks: read". The Sign in with GitHub sign-in also works. - Your own servers: a self-hosted GitLab uses
https://<host>/api/v4; GitHub Enterprise,https://<host>/api/v3. API HTTPS uses the Windows certificates, including your company's root certificate, and the proxy from Preferences › Network.
See Git servers, Sign in with GitLab or GitHub and Accounts (more than one account on the same server).
Tip
Without a token, the panel section warns: "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 Git servers button in the message itself opens the registration already on the right host.
For IT
The administrator can limit the accepted servers with the allowed_servers key of the company policy and distribute the OAuth sign-in client ID with oauth_client_ids. See Administrators.
- Create: from the branch menu, from the section's "+" or from the offer that appears right after the push. The form comes with the title, description, project template, target and reviewers suggested by CODEOWNERS. See Create merge request and Templates and default title.
- Follow: the panel section shows each one's draft state, conflicts, approvals and pipeline. See MERGE REQUESTS section in the panel and MR inbox, which gathers the MRs from all servers.
- Review: double-clicking the MR opens the review in the app, with diff, line comments, suggestions, draft review and approval. See Review.
- Merge: in the review's Actions tab, with the project's method, auto-merge, scheduling, merge train and dependencies. See Merging.
- MERGE REQUESTS section in the panel: the list, the filters, each MR's menu, checkout and draft.
- Create merge request: all the entry points and each field of the form.
- Templates and default title: project templates,
%{...}variables and the GitLab title template. - Merging: method, squash, removing the branch, auto-merge, blockers and draft.
- Merge scheduling: "not before" and time window.
- Merge train and merge queue: merge queue on GitLab and GitHub, position and the target branch panel.
- Dependencies between merge requests: which MRs this one depends on.
- GitLab Duo and GitHub Copilot: asking the server's AI for a review.
- MR inbox: the MRs from all servers in one place.
Some features exist only on paid plans or in newer GitLab versions. When the server doesn't have them, the card appears disabled with the reason, instead of disappearing without explanation:
| Feature | Requirement |
|---|---|
| Merge scheduling ("not before") | GitLab 17.8 or later |
| End of the scheduling time window | GitLab 19.6 or later |
| Merge train | GitLab Premium or higher |
| Dependencies between merge requests | GitLab Premium or higher, API from 17.3 onward |
| Merge request title template | GitLab 19.0 |
| GitLab Duo review | GitLab 17.0 or later, with Duo turned on in the project |
| Resolving conflicts and discussions with Duo | GitLab 19.3, Premium or higher (only from the MR page) |
| Copilot review | github.com |
| Merge queue | GitHub, with the queue turned on for the target branch |
The server's version and plan appear in Git servers, next to each server.