fix: Use ID instead of Path to get top level groups on gitlab (#400)

Co-authored-by: Angel Abad <angel.abadcontreras@capgemini.com>
This commit is contained in:
Angel Abad
2024-04-10 21:49:21 +02:00
committed by GitHub
parent 09fa766de9
commit ef68043ffc

View File

@@ -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.