From 1a734420882f480fca6f432878a0670cf95d6dad Mon Sep 17 00:00:00 2001 From: Cody Rose Date: Tue, 9 Jul 2024 10:39:47 -0400 Subject: [PATCH] Order GitLab repos by ID (#3047) --- pkg/sources/gitlab/gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sources/gitlab/gitlab.go b/pkg/sources/gitlab/gitlab.go index a69baee45..bcc49eee4 100644 --- a/pkg/sources/gitlab/gitlab.go +++ b/pkg/sources/gitlab/gitlab.go @@ -450,8 +450,8 @@ func (s *Source) getAllProjectRepos( } const ( - orderBy = "last_activity_at" - paginationLimit = 100 // Default is 20, max is 100. + orderBy = "id" // TODO: Use keyset pagination (https://docs.gitlab.com/ee/api/rest/index.html#keyset-based-pagination) + paginationLimit = 100 // Default is 20, max is 100. ) listOpts := gitlab.ListOptions{PerPage: paginationLimit}