From ef68043ffcbd66fe88fcd529b8eb5dcba0b8db92 Mon Sep 17 00:00:00 2001 From: Angel Abad Date: Wed, 10 Apr 2024 21:49:21 +0200 Subject: [PATCH] fix: Use ID instead of Path to get top level groups on gitlab (#400) Co-authored-by: Angel Abad --- 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.