GitLab is an all-in-one platform that provides comprehensive DevOps functionality, including repository management, code review, issue tracking, continuous integration, and deployment tools. It is open-source and can be run either on-premises or in the cloud, offering flexibility and customization options to organizations of different sizes and needs.
Hevo uses the GitLab API to replicate data from your GitLab account to the Destination of your choice. To authenticate, Hevo uses a GitLab access token. Refer to section, Data Model for the list of supported objects.
Supported Features
| Feature Name |
Supported |
| Capture deletes |
No |
| History mode |
No |
| Custom data (user-configured tables & fields) |
No |
| Data blocking (skip objects and fields) |
Yes |
| Resync (objects and Pipelines) |
Yes |
| API configurable |
Yes |
Prerequisites
-
An active GitLab account from which data is to be ingested exists.
-
The access token is available to authenticate Hevo on your GitLab account.
-
You are logged in as an Admin user to obtain the access token. Else, you can obtain the access token from your administrator. Read User Types to know about the different types of user accounts and permissions related to them in GitLab.
Create the Access Token
You need an access token to authenticate Hevo on your GitLab account.
Note: You must log in as an Admin user to perform these steps.
Perform the following steps to create the access token:
-
Log in to your GitLab account.
-
Click on your profile picture in the top left corner, and select Preferences.
-
In the left navigation pane, under the User Settings, click Personal Access Tokens.
-
On the Personal access tokens page, click Add new token.
-
In the Add a personal access token section, specify the following:
-
Token Name: A name for your access token.
-
Expiration date: The date on which the token expires.
Note: You must specify a future date as the expiration date to a later date to prevent reauthorization of your Hevo Pipeline with GitLab as the Source.
-
Select scopes: The API permissions needed by Hevo to access your data. To grant the required permissions and create the access token, select the following scopes for the API token:
-
api
-
read_api
-
read_user
-
read_repository
-
read_registry
-
Click Create personal access token.
-
Click the copy icon to copy the access token and save it securely like any other password. Use this token while configuring your Hevo Pipeline.
Perform the following steps to configure your GitLab Source:
-
Click Pipelines in the Navigation Bar.
-
Click + Create Pipeline in the Pipelines List View.
-
On the Select Source Type page, select GitLab.
-
On the Select Destination Type page, select the type of Destination you want to use.
-
In the Configure Source screen, specify the following:
-
Source Name: A unique name for your Source, not exceeding 255 characters. For example, GitLab Source.
-
Access token: The access token that you generated in your GitLab account.
-
Click Test & Continue to test the connection to your GitLab Source. Once the test is successful, you can proceed to set up your Destination.
Data Replication
Hevo replicates data for all the objects selected on the Configure Objects page during Pipeline creation. By default, all supported objects and their available fields are selected. However, you can modify this selection while creating or editing the Pipeline.
Hevo ingests data as per the sync frequency.
Data Model
The following is the list of tables (objects) that are created at the Destination when you run the Pipeline:
| Object |
Mode |
Description |
| Branches |
Full |
Contains details of the separate lines of development within a project’s Git repository. It is used to work on new features, bug fixes, or other changes independently of the main branch (usually named “master” or “main”) and then merge them back when they are ready to be released. |
| Commits |
Incremental |
Contains details of the latest changes in the source code to track the history of a project. |
| Deployments |
Incremental |
Contains details of all the changes to the IT service that are tested and deployed in the live environment. |
| Groups |
Full |
Contains the list of groups and users which allows for the streamlined management of access and permissions for all projects within the group, and serve as a shared space for collaboration and communication. |
| Group Issue Boards |
Full |
Contains the list of all the issues assigned to different groups. |
| Issues |
Incremental |
Contains details of all the bugs reported in a project. |
| Jobs |
Full |
Contains details of a specific task or set of tasks that are executed as part of the continuous integration and continuous deployment (CI/CD) process. Jobs can include building code, running tests, deploying code, or any other task required to complete the software development cycle. |
| Merge Requests |
Incremental |
Contains details of the changes to a Git repository, including the code changes, author, date, and commit message. |
| Pipelines |
Incremental |
Contains details of the series of jobs that run automatically as part of a continuous integration and continuous deployment (CI/CD) process. They are made up of Jobs and Stages that automate and streamline the software development workflow, from source code to deployment. |
| Projects |
Incremental |
Contains details of all the files, code, and issues to organize and manage the software development workflow, including source code, documentation, testing, and deployment. |
| Releases |
Full |
Contains details of a specific version of your project that has been deployed and made available to users. |
| Snippets |
Full |
Contains details of a small pieces of code or text that can be stored and shared within a GitLab instance. |
| Users |
Full |
Contains details about the users, who have access to the projects in your GitLab account. |
Read the detailed Hevo documentation for the following related topics: