CI/CD

The lokalio init command scaffolds a .gitlab-ci.yml snippet for GitLab.

Pipeline Configuration

stages:
  - translate

lokalio-translate:
  stage: translate
  script:
    - npx lokalio generate
  variables:
    LOKALIO_API_KEY: $LOKALIO_API_KEY

Setup Steps

  1. Run npx lokalio init and select GitLab
  2. Add LOKALIO_API_KEY to your project's CI/CD variables
  3. Commit and push — the pipeline triggers on the next push

How It Differs from GitHub

The GitLab integration uses direct CLI invocation rather than a composite action. The CLI auto-detects the git range from GitLab's CI environment variables (CI_COMMIT_BEFORE_SHA..CI_COMMIT_SHA). All other behavior — translation branch, PR creation, [skip ci] commits — is identical.