mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(repo): README lookup like Gitea, clearer branch/org errors, clone-after-create report, mirror interval 0 and search sort (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
16 files changed
+211
-37
No files matched your search
@@ -121,7 +121,10 @@ func (s Repositories) Search(ctx context.Context, opts RepositorySearchOptions)
|
||||
if err != nil {
|
||||
return Page[Repository]{}, err
|
||||
}
|
||||
options.PrioritizedByOwnerID = account.ID
|
||||
// Gitea groups results by owner ahead of the requested sort, so an explicit sort cannot keep it.
|
||||
if opts.Sort == "" {
|
||||
options.PrioritizedByOwnerID = account.ID
|
||||
}
|
||||
window, err := callPage(ctx, s.Client, opts.Limit, opts.Page, func(ctx context.Context, c *gitea.Client, list gitea.ListOptions) ([]*gitea.Repository, *gitea.Response, error) {
|
||||
options.ListOptions = list
|
||||
return c.Repositories.SearchRepos(ctx, options)
|
||||
|
||||
Reference in new issue
Block a user