GitLab
Jasper code reviews on GitLab merge requests, on gitlab.com or your own GitLab.
What it does
- Reviews. When a merge request is opened, reopened or gets new commits on a project with reviews on, Jasper reviews it.
- Threads, note and status. Findings Jasper wants answered are posted as resolvable threads on their lines, the summary as a merge request note, and a
Jasper Reviewcommit status on the head commit. Turn on All threads must be resolved in the project's merge request settings to hold merges until the threads are answered. - Reviews page. GitLab reviews appear on the Reviews page next to GitHub ones, labelled GitLab.
- Protected branches. Shown for each reviewed project, read only. Jasper never changes them.
Before you start
- You need to be an owner or admin of your Jasper organisation. GitLab is off until an admin turns it on in Settings → Features.
- On GitLab you need the Maintainer role on each project Jasper should review (adding a webhook needs it).
- Jasper asks GitLab for the
apiscope.
1. Connect
GitLab.com: open Settings → GitLab, click Connect GitLab.com and approve access.
Self-hosted GitLab:
- On your GitLab, create an application (Admin Area → Applications, or a group's Settings → Applications). Tick the
apiscope and enter the redirect URI shown on Jasper's GitLab settings page. - In Jasper, enter your GitLab address (for example
https://gitlab.example.com), the application ID and the secret, then click Connect self-hosted GitLab.
The address must be https and reachable from the internet. Jasper refuses private, internal and loopback addresses, and checks again on every call.
2. Choose projects
- Click Load projects. Jasper lists the projects you maintain.
- Click Reviews off, turn on next to a project. Jasper adds a merge request webhook to it, signed with a secret only Jasper and GitLab know.
Turning reviews off removes the webhook.
Your data and disconnecting
- Access and refresh tokens, the application secret and the webhook secret are stored encrypted.
- Disconnect removes Jasper's webhooks, revokes the token on GitLab and deletes the tokens and secrets. Past reviews stay in Jasper.
- Jasper keeps each webhook it receives, including refused ones, in its webhook log.
New to Jasper? try it free.
Was this page helpful?