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:
bircni committed 2026-10-18 20:03:55 +02:00
1 parent 8305a89531
commit aa181a2b5c
16 files changed
+211 -37

No files matched your search

+4 -1
View File
@@ -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)