Skip to content

Commit

Permalink
fix: Use ID instead of Path to get top level groups on gitlab (#400)
Browse files Browse the repository at this point in the history
Co-authored-by: Angel Abad <[email protected]>
  • Loading branch information
angelabad and Angel Abad authored Apr 10, 2024
1 parent 09fa766 commit ef68043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scm/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"os"
"regexp"
"strconv"
"strings"

"github.com/gabrie30/ghorg/colorlog"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ef68043

Please sign in to comment.