feat: github adapter
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"log/slog"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@ -72,6 +73,10 @@ func (m *IssueManager) GetUserProjects(ctx context.Context, user *model.User) ([
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
slices.SortFunc(refreshedProjects, func(p1 *model.Project, p2 *model.Project) int {
|
||||
return strings.Compare(p1.Name, p2.Name)
|
||||
})
|
||||
|
||||
m.projectCache.Set(cacheKey, refreshedProjects, 0)
|
||||
|
||||
projects = refreshedProjects
|
||||
|
Reference in New Issue
Block a user