Skip to content

GitLab connector

If you are trying to search through the content in your GitLab repositories, configure this connector.

Type of Repository Cloud
Extractive Model for Answer Generation Yes
Generative Model for Answer Generation Yes
Supported Content Issues

Authorization Support

Search AI interacts with the GitLab using APIs. It supports the following types of authorizations.

  • OAuth 2.0
  • Using Personal Access Tokens.

Set up GitLab

Login to the GitLab account. Depending on the type of Authorization to be used, perform either of the following.

Configure Search AI

Create a new connector for GitLab in Search AI and provide the following configuration fields.

  • Name - Provide a unique name for the connector.
  • Authorization Type - Provide the API token generated above. If the Auth type is set to Private Token, provide the Personal Access Token here. If the auth type is set to OAuth 2.0, provide the client credentials.

Use the following fields to map the content in the GitLab account to the fields in SearchAI. For the standard implementation, use the default values of the fields defined below.

Field Description Default Value
ID Field that uniquely identifies the content project_id
Title Field that defines the title for the content title
Content Field that provides the description of the content description
URL Field that provides the URL of the content web_url
CreateOn Field used to get the creation date. created
UpdateOn Field used to get the creation date. updated
Type Field used to identify the type of content. -

Click Connect to sync the content from GitLab.