From 954a7eecabd3f8c28fdf83c434dd9982cb0bdfa7 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Wed, 20 Jan 2021 11:13:03 +0100 Subject: [PATCH] Don't set apiBaseUrl This is already handled by the gitlab client and the default is wrong --- packages/integration/src/gitlab/config.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/integration/src/gitlab/config.ts b/packages/integration/src/gitlab/config.ts index 2d9f4b39ab..1666ece803 100644 --- a/packages/integration/src/gitlab/config.ts +++ b/packages/integration/src/gitlab/config.ts @@ -18,7 +18,6 @@ import { Config } from '@backstage/config'; import { isValidHost } from '../helpers'; const GITLAB_HOST = 'gitlab.com'; -const GITLAB_API_BASE_URL = 'gitlab.com/api/v4'; /** * The configuration parameters for a single GitLab integration. @@ -68,8 +67,6 @@ export function readGitLabIntegrationConfig( if (apiBaseUrl) { apiBaseUrl = apiBaseUrl.replace(/\/+$/, ''); - } else if (host === GITLAB_HOST) { - apiBaseUrl = GITLAB_API_BASE_URL; } return { host, token, apiBaseUrl }; }