GitLab Token
Connect GitLab repositories using a Personal Access Token.
GitLab does not support App-style integrations in the same way GitHub does, so Kontrua uses a Personal Access Token you create. The token is stored encrypted at rest and never logged.
Create a Personal Access Token
Open GitLab token settings
In GitLab go to User Settings - Access Tokens (or Group - Settings - Access Tokens for a group token).Set the required scopes
Enableapiandread_user. Be clear about what theapiscope grants: it is read and write on your project. Kontrua uses it to read merge request details and the file tree, post notes and commit statuses, create a branch and commit to it, and open merge requests. It never commits to your default branch and it never merges. Every change reaches you as a merge request, or as a commit on the merge request branch you pointed Kontrua at.Enter the token in Kontrua
Go to Dashboard - Settings - Integrations - Connect GitLab and paste the token. Kontrua will verify it and sync your accessible projects.
Set up the webhook
After connecting the token, Kontrua generates a unique webhook URL and secret for each repository. You need to register this webhook in your GitLab project settings.
Open the repo in the Kontrua dashboard
Find the repository and open the Integration tab. Copy the webhook URL and secret shown there.Add the webhook in GitLab
In your GitLab project go to Settings - Webhooks. Paste the URL and secret, enable the Merge request events trigger, and save.
Self-hosted GitLab
If you run a self-hosted GitLab instance, set the instance URL in Dashboard - Settings - Integrations before connecting your token. All API calls and webhook events will be routed through your instance.
Ready to prove your context is true?
Connect your first repository and Kontrua tells you how much of what your docs claim is still true, before it writes anything.