GitLab
This page contains the setup guide and reference information for the Gitlab Source connector.
Prerequisites
- Gitlab instance or an account at Gitlab
For Airbyte Cloud:
- Personal Access Token (see personal access token)
- OAuth
For Airbyte Open Source:
- Personal Access Token (see personal access token)
Setup guide
Step 1: Set up GitLab
Create a GitLab Account or set up a local instance of GitLab.
Airbyte Open Source additional setup steps
Log into GitLab and then generate a personal access token. Your token should have the read_api
scope, that Grants read access to the API, including all groups and projects, the container registry, and the package registry.
Step 2: Set up the GitLab connector in Airbyte
For Airbyte Cloud:
- Log into your Airbyte Cloud account.
- In the left navigation bar, click Sources. In the top-right corner, click + new source.
- On the source setup page, select GitLab from the Source type dropdown and enter a name for this connector.
- Click
Authenticate your GitLab account
by selecting Oauth or Personal Access Token for Authentication. - Log in and Authorize to the GitLab account.
- API URL (Optional) - The URL to access your self-hosted GitLab instance or
gitlab.com
(default). - Start date (Optional) - The date from which you'd like to replicate data for streams.
- Groups (Optional) - List of GitLab group IDs, e.g.
airbytehq
for single group,airbytehq another-repo
for multiple groups. - Projects (Optional) - List of GitLab projects to pull data for, e.g.
airbytehq/airbyte
. - Click Set up source.
Note: You can specify either Group IDs or Project IDs in the source configuration. If both fields are blank, the connector will retrieve a list of all the groups that are accessible to the configured token and ingest as normal.
For Airbyte Open Source:
- Authenticate with Personal Access Token.
Supported sync modes
The Gitlab Source connector supports the following sync modes:
Supported Streams
This connector outputs the following streams:
- Branches
- Commits (Incremental)
- Issues (Incremental)
- Group Issue Boards
- Pipelines (Incremental)
- Jobs
- Projects
- Project Milestones
- Project Merge Requests (Incremental)
- Users
- Groups
- Group Milestones
- Group and Project members
- Tags
- Releases
- Deployments
- Group Labels
- Project Labels
- Epics (only available for GitLab Ultimate and GitLab.com Gold accounts. Stream Epics uses iid field as primary key for more convenient search and matching with UI. Iid is the internal ID of the epic, number of Epic on UI.)
- Epic Issues (only available for GitLab Ultimate and GitLab.com Gold accounts)