Integrations

GitLab (TMS)

Content is machine translated from English by Phrase Language AI.

Available for

  • Team, Business and Enterprise plans

Get in touch with Sales for licensing questions.

Available for

  • Ultimate and Enterprise plans (Legacy)

Get in touch with Sales for licensing questions.

Tip

For information about GitLab integration in Phrase Strings, refer to GitLab (Strings).

GitLab connector allows the downloading of source files and uploading of target files directly to/from the GitLab repository. The connector uses the GitLab API to implement the integration and allows access to all repositories associated with a GitLab account.

Use Cases

There are a number of use cases for the connector:

  • Project managers can add files directly to projects from an online repository.

  • Set up the submitter portal to allow Submitters to add files to requests directly from the online repository.

  • Use automated project creation (APC) to have new projects automatically created when a change in file size is detected in monitored files or a folder.

    • All files from the monitored folder and/or subfolders are imported the very first time APC runs. Newly added files are imported with the next triggered monitoring after their creation.

    • Due to limitations in the GitLab API, monitoring an entire folder is not supported.

    • Use the Git connector if you need to monitor an entire subdirectory.

    • This connector supports absolute path setting. Target translation files can be stored only in the same branch as the source file.

  • Set up continuous jobs to have selected files monitored for changes.

Tip

If requirements are:

  • Limiting Phrase access to a single repository.

  • Using an SSH key for authentication.

  • Detection of file changes based on Last modified date as opposed to just file size.

Use Git connector to connect to GitLab.

GitLab Settings

Create an access token in the GitLab account.

  1. Log in to the GitLab account, navigate to Settings and click on Access Tokens.

    The Personal Access Tokens screen opens.

  2. Fill in the Name and Expires at fields. Choose a longer time period so the token doesn't require frequent recreation.

  3. Under Scopes, check the api and read_user checkboxes.

  4. Click on Create personal access token.

    This generates a token needed to enter into the connector configuration.

    • The token is only visible at this stage and cannot be reached afterward.

Phrase TMS Settings

  1. From the Settings Setup_gear.png page, scroll down to the Integrations section.

  2. Click on Connectors.

    The Connectors page opens.

  3. Click New connector.

    The Create connector page opens.

  4. Provide a name for the connection and change the Type to GitLab .

  5. Optionally select Export translations as pull requests and provide a Merge request branch.

  6. Enter GitLab site URL (e.g https://gitlab.com/) and the GitLab personal access token you have obtained from the GitLab site.

    • In order to access the repository, it must be accessible from the Internet.

  7. Click Test connection.

    A checkmark will appear if the connection was successful. A red exclamation point will appear if it wasn't. Hover over the icon to see additional details.

  8. Click Save.

    The connector is added to the list on the Connectors page.

Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.