GitLab Integration
'Connect GitLab to Supervity, authorize access, and use GitLab projects, issues, merge requests, and users in operators and workflows.'
This guide explains how to connect GitLab to Supervity, what data is available after connection, how operators can use GitLab data and actions within workflows, and how to remove the integration when needed.
Overview
The Supervity GitLab integration allows your workspace to securely connect GitLab as a governed DevOps capability.
Once connected, operators and workflows can list and manage projects, create and
track issues, review and update merge requests, merge approved changes, and
collaborate across repositories—supporting both GitLab SaaS (gitlab.com)
and Self-Managed GitLab instances (gitlab.yourcompany.com).
With the GitLab integration, Supervity can:
- Query and inspect accessible public and private projects via GitLab REST API v4
- Create, update, and manage project configurations
- Create, retrieve, update, and close issues with labels, descriptions, and assignees
- Inspect merge requests, review diff statuses, and track approval states
- Create new merge requests from feature branches and update existing MRs
- Programmatically merge approved merge requests to automate release cycles
- Retrieve authenticated user identities and account metadata
- Support custom self-hosted GitLab instance URLs with seamless OAuth
All GitLab access is governed through Supervity's security, permissions, and audit controls.
Why Use the GitLab Integration?
GitLab provides end-to-end DevOps from code planning to CI/CD and production monitoring. Integrating GitLab with Supervity bridges developer operations and autonomous AI execution:
- Automated Issue Triage: Categorize, label, and assign newly submitted GitLab issues based on stack traces or bug descriptions.
- Merge Request Preparation: Automatically draft merge requests with clear descriptions, release notes, and issue references when code changes are ready.
- Automated Release Promotion: Merge staging merge requests automatically once test suites pass and required approvals are obtained.
- Cross-Tool Synchronization: Synchronize GitLab issues and merge requests with Jira, Asana, or Linear to maintain organizational alignment.
- Hybrid Cloud Flexibility: Connect cloud workspaces to either public
gitlab.comor private, on-premise self-managed GitLab installations.
Prerequisites
Before connecting GitLab, ensure you have:
- An active Supervity workspace
- A GitLab account on
gitlab.comor a self-managed GitLab instance- Permission to authorize third-party OAuth applications in GitLab
- Access to the GitLab projects and groups you intend to automate
- (For self-managed instances) The accessible HTTPS URL of your GitLab instance (e.g.,
https://gitlab.example.com)
Adding the GitLab Integration
Follow these steps to connect GitLab to Supervity. If you encounter any issues during setup, refer to the Troubleshooting section of this guide.
Step 1: Open Integrations
- Log in to Supervity.
- From the left navigation bar, click the Integrations icon.
This opens the Integrations page, displaying all available connectors.
Step 2: Select GitLab
- Locate GitLab in the available integrations list.
- Click Connect.
Step 3: Configure Instance URL & Authorize Access
- If connecting to GitLab SaaS, leave the default instance URL
(
https://gitlab.com). - If connecting to a Self-Managed GitLab server, enter your instance base
URL (e.g.,
https://gitlab.yourcompany.com). - Click Proceed to Authorize. You will be redirected to GitLab's OAuth authorization portal.
- Review the requested permissions (
read_user,read_api,api). - Click Authorize to grant Supervity access.
- Supervity uses GitLab's standard OAuth 2.0 authorization protocol.
- Your GitLab account password is never shared with or stored by Supervity.
Step 4: Complete Connection
After authorization, you will be redirected back to Supervity automatically.
The GitLab integration will display as Connected on the Integrations page. Your workspace can now interact with GitLab projects, issues, and merge requests according to your granted permissions.
Having trouble? See the Troubleshooting section for solutions to common connection issues.
How GitLab Works in Supervity
After connection, GitLab functions as a governed developer tool.
Operators can invoke GitLab actions dynamically when planning software tasks, while workflows can automate bug intake, pull request tracking, and delivery pipelines.
Common workflow patterns include:
- Converting customer-reported bugs into structured GitLab issues with reproduction steps
- Checking the status of open merge requests targeted for the next release milestone
- Merging a release branch once all integration tests have passed
- Synchronizing issue milestones between GitLab and enterprise planning tools
Using GitLab in Operators
Connected GitLab capabilities become available to operators automatically. Operators evaluate user requests, determine whether GitLab projects, issues, or merge requests are involved, and execute actions within defined boundaries.
What Operators Can Do with GitLab
- Project Administration: List accessible projects, inspect repository metadata, and configure project parameters.
- Issue Tracking: Create issues with labels, descriptions, and assignees; update issue statuses; close resolved issues.
- Merge Request Management: List active merge requests, inspect source/target branches, update MR descriptions, and execute merges.
- User Identity: Verify the authenticated user profile and permissions.
Typical Operator Use Cases
| Use Case | Example Workflow |
|---|---|
| Automated Issue Filing | Create a GitLab issue when an error log is detected |
| Sprint Backlog Grooming | List and organize open issues by milestone or label |
| MR Lifecycle Automation | Open a merge request from a completed feature branch |
| Continuous Delivery | Merge approved MRs during designated deployment windows |
| Cross-System Sync | Update an external Jira ticket when a GitLab MR is merged |
Features & Prerequisites
For each GitLab capability available in Supervity, the following describes the use case and the prerequisites required before use.
List Projects
Use Case: List all projects accessible to the authenticated user via
GET /api/v4/projects (including private projects when read_api is granted).
Prerequisites:
- GitLab account connected to Supervity
- Read API permissions enabled (
read_apiscope)
Get Project
Use Case: Retrieve comprehensive metadata for a specific project by numeric
Project ID or URL-encoded path (e.g., group%2Fproject).
Prerequisites:
- GitLab account connected to Supervity
- Project ID or path must be provided (
read_apiscope for private projects)
Create Project
Use Case: Create a new repository project in GitLab.
Prerequisites:
- GitLab account connected to Supervity
- Project name and namespace ID must be provided
- API write permissions enabled (
apiscope)
Update Project
Use Case: Update project settings, default branch, or visibility.
Prerequisites:
- GitLab account connected to Supervity
- Project ID must be provided
- API write permissions enabled (
apiscope)
Delete Project
Use Case: Permanently delete a project from GitLab.
Prerequisites:
- GitLab account connected to Supervity
- Project ID must be provided
- Project owner permissions and full API permissions (
apiscope)
List Issues
Use Case: Query issues within a project, filtering by state (opened,
closed), labels, or assignees.
Prerequisites:
- GitLab account connected to Supervity
- Project ID must be provided (
read_apiscope)
Get Issue
Use Case: Retrieve details for a specific issue by issue IID (internal ID).
Prerequisites:
- GitLab account connected to Supervity
- Project ID and Issue IID must be provided
Create Issue
Use Case: Create a new issue with title, description, labels, milestone, and assignees.
Prerequisites:
- GitLab account connected to Supervity
- Project ID and issue title must be provided
- API write permissions enabled (
apiscope)
Update Issue
Use Case: Modify an existing issue's title, description, state (close or
reopen), or labels.
Prerequisites:
- GitLab account connected to Supervity
- Project ID and Issue IID must be provided
- API write permissions enabled (
apiscope)
List Merge Requests
Use Case: List merge requests for a project, filtering by state (opened,
closed, merged).
Prerequisites:
- GitLab account connected to Supervity
- Project ID must be provided (
read_apiscope)
Get Merge Request
Use Case: Retrieve details for a specific merge request, including merge status, pipeline status, and reviewers.
Prerequisites:
- GitLab account connected to Supervity
- Project ID and Merge Request IID must be provided
Create Merge Request
Use Case: Open a new merge request from a source branch into a target branch.
Prerequisites:
- GitLab account connected to Supervity
- Project ID, source branch, target branch, and title must be provided
- API write permissions enabled (
apiscope)
Update Merge Request
Use Case: Update an existing merge request's title, description, or target branch.
Prerequisites:
- GitLab account connected to Supervity
- Project ID and Merge Request IID must be provided
- API write permissions enabled (
apiscope)
Merge Merge Request
Use Case: Programmatically merge an approved merge request into the target branch.
Prerequisites:
- GitLab account connected to Supervity
- Project ID and Merge Request IID must be provided
- Merge permissions on the target branch and API permissions (
apiscope)
Get Authenticated User
Use Case: Retrieve the connected user's profile, username, email, and GitLab ID.
Prerequisites:
- GitLab account connected to Supervity
- Read user permissions enabled (
read_userscope)
Permissions Requested
Supervity only requests the permissions required for enabled GitLab capabilities.
Depending on the features used in your workspace, permissions may include:
| Permission Type | Purpose |
|---|---|
| User Profile | Associate GitLab data with authorized user accounts and verify identity |
| Project Access | Query and inspect accessible public and private projects |
| Issue Management | Create, update, and track issues, labels, and milestones |
| Merge Requests | Create, inspect, update, and merge merge requests across repository branches |
| Project Configuration | Create, update, or configure projects and repository settings |
Supervity follows least-privilege principles and only accesses data necessary to provide requested functionality.
Authentication & Security
GitLab integration adheres to rigorous enterprise standards:
- OAuth 2.0: Standard OAuth 2.0 authorization with token normalization.
- Self-Managed Support: Direct connectivity to self-hosted GitLab instances via customer-defined base URLs.
- Token Security: OAuth access and refresh tokens are encrypted at rest using AES-256-GCM.
- TLS 1.3: All communication with GitLab endpoints is secured over TLS 1.3.
- Audit Trails: Every issue created, project accessed, and merge executed is logged with full operator context in Supervity.
Troubleshooting
Private Projects Not Appearing in Project List
- Cause: The OAuth token only has the
read_userscope or used an unauthenticated endpoint. - Resolution: Supervity uses
GET /api/v4/projectswithBearerauthentication requiring theread_apiscope. Disconnect and reconnect GitLab, ensuring all requested permissions are approved.
Self-Managed GitLab Connection Error
- Cause: The base URL provided is unreachable or lacks a valid HTTPS certificate.
- Resolution: Ensure the GitLab instance URL begins with
https://, is publicly accessible from the internet, and has a trusted SSL certificate.
403 Forbidden on Merge
- Cause: The connected user account lacks permission to merge into protected
branches (e.g.,
mainorproduction). - Resolution: Check the protected branches configuration in GitLab under Settings > Repository > Protected Branches and ensure the user or their role is allowed to merge.
Frequently Asked Questions
Q: Does Supervity work with self-managed or on-premises GitLab?
Yes. When connecting, you can specify your self-managed GitLab instance URL
(e.g., https://gitlab.yourcompany.com).
Q: Can Supervity merge a merge request if pipeline tests fail?
If your GitLab repository enforces "Pipelines must succeed" before merging,
GitLab's API will reject the merge attempt until all pipeline jobs pass.
Q: How do project paths work in queries?
GitLab endpoints accept either numeric Project IDs or URL-encoded full paths
(e.g., my-group%2Fmy-project). Numeric IDs are recommended for automated
workflows.
Support
If you need assistance with the GitLab integration, visit the Support page.
Support Hours
- Monday to Friday, 9:00 AM – 6:00 PM IST
- Requests submitted outside business hours will be addressed on the next business day
First Response SLA
- All support requests receive an initial response within 24 business hours
Contact Information
| Contact Type | Details |
|---|---|
| Support | Support & Contact |
| Sales Inquiries | [email protected] |
| Contact Form | https://www.supervity.ai/contact-us |
| Website | https://www.supervity.ai |
| Privacy Policy | https://supervity.ai/privacy-policy |
| Terms of Service | https://www.supervity.ai/terms-of-service |
| Acceptable Use Policy | https://supervity.ai/acceptable-use-policy |
When Contacting Support, Please Provide
- Workspace name
- GitLab account username/email used for authorization
- GitLab instance URL (if self-managed)
- Relevant workflow or operator information
- Error messages or screenshots when available
This helps the support team investigate and resolve issues more quickly.