Skip to main content

Git Integration

Starting with version 3.1.0 of the IOMETE platform, we now support Git integration, with GitLab as our initial Git provider. The initial support focuses on hosting SQL worksheets in Git repositories that can be accessed through the SQL editor tab within the platform. This document outlines the process for setting up the integration and accessing SQL files hosted on Git.

Registering a Git Repo

To integrate a repository within the platform, first register it through the Git Integration tab. You can also access the Git Integration window directly from the SQL editor using the "Checkout Git Repo" button.

checkout repo | IOMETEcheckout repo | IOMETE

Click on add new and fill in the details requested. Name: The name that you want to be used in, used to display the specified repository.

Provider: The Git provider in use. Currently only Gitlab is supported

Git Server URL: The URL of the Git provider (GitLab) for the current configuration. In most cases it would be https://gitlab.com , but when using a self-hosted GitLab instance, provide the URL of your self-hosted GitLab server.

Project ID: Project ID of the repository that you want integrated. This can be retrieved from the Gitlab UI.

project id | IOMETEproject id | IOMETE

Once all the details are filled in click on create to save the repo.

create repo | IOMETEcreate repo | IOMETE

Creating and Configuring a Token

When we open the SQL Editor tab, we can now see that the integrated repo is visible in the repositories section.

sql editor tab | IOMETEsql editor tab | IOMETE

To browse Git repositories integrated within the platform, users must provide a GitLab access token with appropriate permissions for both platform access and repository browsing privileges for the specific registered repository.

In the Git Integration Tab, register the token via which we want to access Git.

create token | IOMETEcreate token | IOMETE

Once this is done, navigate back to SQL and click on Configure token and choose the token from the list of registered tokens.

configure token | IOMETEconfigure token | IOMETE

As soon as we configure the token, we can see the content of the git repo and execute the Sql queries present in them.

execute sql | IOMETEexecute sql | IOMETE