feat: github adapter
This commit is contained in:
@ -4,9 +4,7 @@ import (
|
||||
"context"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"forge.cadoles.com/wpetit/clearcase/internal/core/model"
|
||||
@ -164,10 +162,6 @@ func (f *Forge) GetAllProjects(ctx context.Context) ([]*model.Project, error) {
|
||||
}
|
||||
}
|
||||
|
||||
slices.SortFunc(projects, func(p1 *model.Project, p2 *model.Project) int {
|
||||
return strings.Compare(p1.Name, p2.Name)
|
||||
})
|
||||
|
||||
return projects, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user