Merge pull request #2337 from A-D-E/fix/gitlab-branches-pagination

fix: use configured GitLab URL instead of hardcoded gitlab.com
This commit is contained in:
Mauricio Siu
2025-08-09 00:23:43 -06:00
committed by GitHub

View File

@@ -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}`,