From 0b7d85e24238e2e8797b24b46b3f3bc6543df59f Mon Sep 17 00:00:00 2001 From: Angel Abad Date: Wed, 10 Apr 2024 16:14:48 +0200 Subject: [PATCH] fix: Use ID instead of Path to get top level groups on gitlab --- scm/gitlab.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm/gitlab.go b/scm/gitlab.go index 2f52971a33..56434d13b6 100644 --- a/scm/gitlab.go +++ b/scm/gitlab.go @@ -6,6 +6,7 @@ import ( "net/http" "os" "regexp" + "strconv" "strings" "github.com/gabrie30/ghorg/colorlog" @@ -103,7 +104,7 @@ func (c Gitlab) GetTopLevelGroups() ([]string, error) { } for _, g := range groups { - allGroups = append(allGroups, g.Path) + allGroups = append(allGroups, strconv.FormatInt(int64(g.ID), 10)) } // Exit the loop when we've seen all pages.