From 33873ce1e9389f9ee65ddac461e61ac9cdc195cf Mon Sep 17 00:00:00 2001 From: A-D-E Date: Tue, 5 Aug 2025 21:31:15 +0200 Subject: [PATCH] fix: use configured GitLab URL instead of hardcoded gitlab.com The previous pagination implementation accidentally hardcoded the GitLab URL to gitlab.com, breaking the integration for self-hosted GitLab instances. Changes: - Replace hardcoded 'https://gitlab.com' with gitlabProvider.gitlabUrl - Maintains the pagination functionality added in previous commit Fixes: GitLab branches API calls failing for self-hosted instances --- packages/server/src/utils/providers/gitlab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/providers/gitlab.ts b/packages/server/src/utils/providers/gitlab.ts index 774cd818f..1971308b2 100644 --- a/packages/server/src/utils/providers/gitlab.ts +++ b/packages/server/src/utils/providers/gitlab.ts @@ -316,7 +316,7 @@ export const getGitlabBranches = async (input: { while (true) { const branchesResponse = await fetch( - `https://gitlab.com/api/v4/projects/${input.id}/repository/branches?page=${page}&per_page=${perPage}`, + `${gitlabProvider.gitlabUrl}/api/v4/projects/${input.id}/repository/branches?page=${page}&per_page=${perPage}`, { headers: { Authorization: `Bearer ${gitlabProvider.accessToken}`,