Integrations
GitLab
Oxvel reads the code, merge requests and pipelines of your GitLab projects, and opens its fixes as draft merge requests.
Connect GitLab
- 1On GitLab, open Preferences, Personal access tokens, and create a token.
- 2Check
apiso Oxvel can open merge requests, or onlyread_apiso it can only read. - 3In « Paramètres, Connecteurs » (Settings, Connectors), click Connecter (Connect) next to GitLab and paste the token. If you run your own GitLab, also enter its address (https).
What Oxvel reads
- The code of your projects, file by file, and code search.
- Recent commits, for a project, a branch or a file.
- Merge requests, with their description, pipeline status and the diff of each file. Ask "review MR !42 in group/project".
- CI pipelines, and the end of the log of each failed job, to explain why CI is failing.
Open the fix as a merge request
When Oxvel suggests a fix as a diff, click Créer la MR (Create MR) below its answer and choose the GitLab project. Oxvel creates a branch, applies the diff to it and opens a draft merge request. Nothing is merged. The token needs the api scope and you need at least the Developer role on the project.
After the merge
A fix MR opened from an incident is tracked the same way as on GitHub. Once it's merged, Oxvel watches the error in production and tells you whether it went away or came back.
Automatic review
On the GitLab tile, choose projects in « Relire automatiquement les nouvelles merge requests » (Automatically review new merge requests). Every 15 minutes, Oxvel reviews each new commit on an open MR (drafts excluded) and posts its review as a comment on the MR. The token needs the api scope.
Rerunning failed tests and automatic fixes from an incident, with the « Corriger » (Fix) button, only work with GitHub for now.