mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 18:18:58 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user