diff --git a/internal/gitsources/gitlab/gitlab.go b/internal/gitsources/gitlab/gitlab.go index cac08ff..2e1d530 100644 --- a/internal/gitsources/gitlab/gitlab.go +++ b/internal/gitsources/gitlab/gitlab.go @@ -22,6 +22,7 @@ import ( "net" "net/http" "regexp" + "sort" "strconv" "strings" "time" @@ -317,6 +318,12 @@ func (c *Client) listUserRepos(fromOptions gitlab.ListProjectsOptions) ([]*gitso } } + sort.Slice(repos, func(i, j int) bool { + a := repos[i] + b := repos[j] + return a.Path < b.Path + }) + return repos, nil }