Merge branch 'main' into feat/add-object-format-validation

This commit is contained in:
Lunny Xiao
2025-09-03 22:34:27 +00:00
25 changed files with 250 additions and 43 deletions

View File

@ -65,14 +65,14 @@ func RunReposList(_ stdctx.Context, cmd *cli.Command) error {
return err
}
rps, _, err = client.SearchRepos(gitea.SearchRepoOptions{
ListOptions: teaCmd.GetListOptions(),
ListOptions: flags.GetListOptions(),
StarredByUserID: user.ID,
})
} else if teaCmd.Bool("watched") {
rps, _, err = client.GetMyWatchedRepos() // TODO: this does not expose pagination..
} else {
rps, _, err = client.ListMyRepos(gitea.ListReposOptions{
ListOptions: teaCmd.GetListOptions(),
ListOptions: flags.GetListOptions(),
})
}

View File

@ -109,7 +109,7 @@ func runReposSearch(_ stdctx.Context, cmd *cli.Command) error {
}
rps, _, err := client.SearchRepos(gitea.SearchRepoOptions{
ListOptions: teaCmd.GetListOptions(),
ListOptions: flags.GetListOptions(),
OwnerID: ownerID,
IsPrivate: isPrivate,
IsArchived: isArchived,