GitLab Integration

Connect GitLab projects, issues, and merge requests to Metalogue

GitLab Integration

Connect your GitLab instance to index projects, issues, merge requests, and wikis.

Quick Start

const connector = await client.createConnector({
  connector_type: 'gitlab',
  display_name: 'Company GitLab',
  credentials: {
    access_token: 'glpat-xxxxxxxxxxxx',
    base_url: 'https://gitlab.com', // or self-hosted
  },
});

await client.syncConnector(connector.connector_id, true);

Authentication

Personal Access Token

{
  "credentials": {
    "access_token": "glpat-xxxxxxxxxxxx",
    "base_url": "https://gitlab.com"
  }
}

Required scopes: read_api, read_repository

OAuth 2.0

GET /v1/connectors/gitlab/oauth-url

Synced Content

Content TypeDescriptionIndexed Fields
ProjectsRepositoriesname, description, readme
IssuesBugs, featurestitle, description, comments
Merge RequestsCode reviewstitle, description, diff
WikisDocumentationtitle, content

Configuration

{
  "settings": {
    "groups": ["engineering", "product"],
    "include_archived": false,
    "sync_wikis": true
  }
}

Next Steps