Movatterモバイル変換


[0]ホーム

URL:


DOCS >INTEGRATIONS >SAAS >GITLAB (V1)

Get started with a free trial today

Already have an account? Sign in

GitLab (v1)

GitLab is supported by the Singer community
This integration is powered bySinger's GitLab tap. For support,visit the GitHub repo orjoin the Singer Slack.

GitLab integration summary

Stitch’s GitLab integration replicates data using theGitLab REST API. Refer to theSchema section for a list of objects available for replication.

GitLab feature snapshot

A high-level look at Stitch's GitLab (v1) integration, including release status, useful links, and the features supported in Stitch.

STITCH
Release status

Released on March 1, 2017

Supported by

Singer Community

Stitch plan

Standard

API availability

Available

Singer GitHub repository

singer-io/tap-gitlab

REPLICATION SETTINGS
Anchor Scheduling

Supported

Advanced Scheduling

Supported

Table-level reset

Unsupported

Configurable Replication Methods

Unsupported

DATA SELECTION
Table selection

Unsupported

Column selection

Unsupported

Select all

Unsupported

TRANSPARENCY
Extraction Logs

Supported

Loading Reports

Supported

Connecting GitLab

GitLab setup requirements

To set up GitLab in Stitch, you need:

  • Access to any projects you want to replicate data from. Stitch will only be able to access the same projects as the user who creates the integration.


Step 1: Create a GitLab token

  1. Sign into your GitLab account.
  2. Click theuser menu (your icon) > Settings.
  3. Click theAccess Tokens tab.
  4. In theName field, enterStitch. This will allow you to easily identify what application is using the token.
  5. In theScopes section, check theapi box. This will allow Stitch to access your API and replicate your GitLab data.
  6. ClickCreate Personal Access Token.
  7. The new Access Token will display at the top of the page.Copy the token before navigating away from the page - GitLab won’t display it again.

Step 2: Add GitLab as a Stitch data source

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click theAdd Integration button.

  3. Click theGitLab icon.

  4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

    For example, the name “Stitch GitLab” would create a schema calledstitch_gitlab in the destination.Note: Schema names cannot be changed after you save the integration.

  5. In theAPI URL field, enterhttps://gitlab.com/api/v4.
  6. In thePrivate Token field, paste thePersonal Access Token you created in the previous section.
  7. In theProjects andGroups to Track fields, you’ll enter the projects and/or groups you want to track as aspace-separated list.

    For example:stitchdata/group-a, orstitchdata/project-a stitchdata/project-b

    Note: A value for one of these fields must be provided. Additionally, the way you define these settings determines how some data is replicated:

    • Ifgroups are provided butprojects aren’t, all group projects will be replicated.
    • Ifgroups andprojects are provided, the selected projects of the listed groups will be replicated.
    • Ifprojects are provided butgroups aren’t, all listed projects will be replicated.

Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your GitLab integration. This means that dataequal to or newer than this date will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond GitLab’s default setting of1 year. For a detailed look at historical replication jobs, check out theSyncing Historical SaaS Data guide.

Step 4: Create a replication schedule

Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to theReplication Scheduling documentation for more information.

In theReplication Frequency section, you’ll create the integration’sreplication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

GitLab integrations support the following replication scheduling methods:

To keep your row usage low, consider setting the integration to replicate less frequently. See theUnderstanding and Reducing Your Row Usage guide for tips on reducing your usage.

Initial and historical replication jobs

After you finish setting up GitLab, itsSync Status may show asPending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, aPending status indicates that Stitch is in the process of scheduling the initial replication job for the integration.This may take some time to complete.

Initial replication jobs with Anchor Scheduling

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to theAnchor Scheduling documentation for more information.

Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Replication will continue after the seven days are over. If you’re no longer interested in this source, be sure topause ordelete the integration to prevent unwanted usage.

GitLab table reference

Schemas and versioning

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is forversion 1 of this integration.

This is the latest version of the GitLab integration.

Table and column names in your destination

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (CusTomERs >customers), while case is maintained in PostgreSQL destinations (CusTomERs >CusTomERs). Refer to theLoading Guide for your destination for more info.

branches

Thebranches table contains high-level info about repository branches in your projects.

Note: To replicate branch data, you must set this table and theprojects table to replicate. Data for this table will only be replicated when the associated project (in theprojects table) is also updated.

Replication Method

Key-based Incremental

Primary Keys

project_id

name

Useful links

branches schema on GitHub

GitLab API method

Join branches withon
commits
branches.project_id = commits.project_id
branches.commit_id = commits.id
issues
branches.project_id = issues.project_id
milestones
branches.project_id = milestones.project_id
projects
branches.project_id = projects.project_id

commit_id

STRING

developers_can_merge

BOOLEAN

developers_can_push

BOOLEAN

merged

BOOLEAN

name

STRING

project_id

INTEGER

protected

BOOLEAN

commits

Thecommits table contains info about repository commits in a project.

Note: To replicate commit data, you must set this table and theprojects table to replicate. Data for this table will only be replicated when the associated project (in theprojects table) is also updated.

Replication Method

Key-based Incremental

Primary Key

id

Useful links

commits schema on GitHub

GitLab API method

Join commits withon
branches
commits.project_id = branches.project_id
commits.id = branches.commit_id
issues
commits.project_id = issues.project_id
milestones
commits.project_id = milestones.project_id
projects
commits.project_id = projects.project_id

allow_failure

BOOLEAN

author_email

STRING

author_name

STRING

committer_email

STRING

committer_name

STRING

created_at

DATE-TIME

id

STRING

message

STRING

project_id

INTEGER

short_id

STRING

title

STRING

groups

Thegroups table contains info about the groups in your GitLab account.

Replication Method

Full Table

Primary Key

id

Useful links

groups schema on GitHub

GitLab API method

avatar_url

STRING

description

STRING

full_name

STRING

full_path

STRING

id

INTEGER

lfs_enabled

BOOLEAN

name

STRING

path

STRING

projects

ARRAY

request_access_enabled

BOOLEAN

visibility_level

INTEGER

web_url

STRING

issues

Theissues table contains info about issues contained within projects.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

issues schema on GitHub

GitLab API method

Join issues withon
branches
issues.project_id = branches.project_id
commits
issues.project_id = commits.project_id
milestones
issues.project_id = milestones.project_id
issues.milestone_id = milestones.id
projects
issues.project_id = projects.project_id

assignee_id

INTEGER

author_id

INTEGER

confidential

BOOLEAN

created_at

DATE-TIME

description

STRING

due_date

STRING

id

INTEGER

iid

INTEGER

labels

ARRAY

milestone_id

INTEGER

project_id

INTEGER

state

STRING

subscribed

BOOLEAN

title

STRING

updated_at

DATE-TIME

user_notes_count

INTEGER

web_url

STRING

milestones

Themilestones table contains info about project milestones.

Note: To replicate milestone data, you must set this table and theprojects table to replicate. Data for this table will only be replicated when the associated project (in theprojects table) is also updated.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

milestones schema on GitHub

GitLab API method

Join milestones withon
branches
milestones.project_id = branches.project_id
commits
milestones.project_id = commits.project_id
issues
milestones.project_id = issues.project_id
milestones.id = issues.milestone_id
projects
milestones.project_id = projects.project_id

created_at

DATE-TIME

description

STRING

due_date

STRING

group_id

INTEGER

id

INTEGER

iid

INTEGER

project_id

INTEGER

start_date

STRING

state

STRING

title

STRING

updated_at

DATE-TIME

projects

Theprojects table contains info about specific projects.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

last_activity_at

Useful links

projects schema on GitHub

GitLab API method

Join projects withon
branches
projects.project_id = branches.project_id
commits
projects.project_id = commits.project_id
issues
projects.project_id = issues.project_id
milestones
projects.project_id = milestones.project_id
users
projects.creator_id = users.id

approvals_before_merge

INTEGER

archived

BOOLEAN

avatar_url

STRING

builds_enabled

BOOLEAN

container_registry_enabled

BOOLEAN

created_at

DATE-TIME

creator_id

INTEGER

default_branch

STRING

description

STRING

forks_count

INTEGER

http_url_to_repo

STRING

id

INTEGER

issues_enabled

BOOLEAN

last_activity_at

DATE-TIME

lfs_enabled

BOOLEAN

merge_requests_enabled

BOOLEAN

name

STRING

name_with_namespace

STRING

namespace

OBJECT

id

INTEGER

kind

STRING

name

STRING

path

STRING

only_allow_merge_if_all_discussions_are_resolved

BOOLEAN

only_allow_merge_if_build_succeeds

BOOLEAN

open_issues_count

INTEGER

owner_id

INTEGER

path

STRING

path_with_namespace

STRING

permissions

OBJECT

public

BOOLEAN

public_builds

BOOLEAN

request_access_enabled

BOOLEAN

shared_runners_enabled

BOOLEAN

shared_with_groups

ARRAY

group_access_level

INTEGER

group_id

INTEGER

group_name

STRING

snippets_enabled

BOOLEAN

ssh_url_to_repo

STRING

star_count

INTEGER

tag_list

ARRAY

visibility_level

INTEGER

web_url

STRING

wiki_enabled

BOOLEAN

users

Theusers table contains info about the users in your GitLab account.

Replication Method

Full Table

Primary Key

id

Useful links

users schema on GitHub

GitLab API method

Join users withon
projects
users.id = projects.creator_id

avatar_url

STRING

id

INTEGER

name

STRING

state

STRING

username

STRING

web_url

STRING

RelatedTroubleshooting

Questions? Feedback?

Did this article help? If you have questions or feedback, feel free tosubmit a pull request with your suggestions,open an issue on GitHub, orreach out to us.


[8]ページ先頭

©2009-2026 Movatter.jp