Skip to content

GitLab Integration

Flagship supports GitLab (SaaS and Self-Managed) via OAuth2 integration.

Configuration

To connect GitLab, you need to register Flagship as an OAuth application in GitLab.

  1. Create an OAuth Application in GitLab:

    • Go to User Settings > Applications (or Group/Project settings).
    • Name: Flagship
    • Redirect URI: Copy the Redirect URI from your Flagship dashboard (Settings > Integrations > Source Control > GitLab).
    • Scopes: Select api, read_repository, write_repository (required for cleanup PRs).
  2. Connect in Flagship:

    • Enter the Application ID and Secret generated by GitLab into the Flagship settings page.
    • Click Connect.

Features

Similar to the GitHub integration, connecting GitLab allows Flagship to:

  • Analyze Merge Requests.
  • Detect feature flags automatically.
  • Post rollout plans as comments on MRs.
  • Automate cleanup MRs.