gitea.tea/cmd
Bo-Yi Wu cb9824b451 feat(repos): support owner-based repository listing with robust lookup (#931)
- Add an owner flag to the repos list command to list repositories for a specific user or organization
- Implement owner-based repository listing by detecting whether the owner is an organization or a user and calling the appropriate API
- Improve error handling for owner lookup by checking HTTP status codes instead of relying on error string matching
- Align repository search logic with the updated owner lookup behavior using HTTP response validation

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

Reviewed-on: https://gitea.com/gitea/tea/pulls/931
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2026-03-12 04:22:28 +00:00
..
actions Add tea actions runs and workflows commands (#880) 2026-02-11 00:40:06 +00:00
admin/users Remove pagination from context (#807) 2025-08-26 23:13:27 +00:00
attachments Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
branches Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
flags Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
issues Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
labels Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
login feat: store OAuth tokens in OS keyring via credstore (#926) 2026-03-12 02:49:14 +00:00
milestones helpful error messages (#871) 2026-02-02 22:59:22 +00:00
notifications More improvements (#870) 2026-02-02 22:58:25 +00:00
organizations helpful error messages (#871) 2026-02-02 22:59:22 +00:00
pulls support create agit flow pull request (#867) 2026-02-03 20:36:04 +00:00
releases Remove pagination from context (#807) 2025-08-26 23:13:27 +00:00
repos feat(repos): support owner-based repository listing with robust lookup (#931) 2026-03-12 04:22:28 +00:00
times Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
webhooks Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
actions.go Add tea actions runs and workflows commands (#880) 2026-02-11 00:40:06 +00:00
admin.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
api.go Parse multiple values in api subcommand (#911) 2026-02-26 17:43:46 +00:00
api_test.go Parse multiple values in api subcommand (#911) 2026-02-26 17:43:46 +00:00
attachments.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
branches.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
categories.go spdx (#581) 2023-09-08 01:40:02 +00:00
clone.go Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
cmd.go Move versions/filelocker into dedicated subpackages, and consistent headers in http requests (#888) 2026-02-05 18:05:43 +00:00
comment.go make vet&fmt pass 2026-03-10 09:55:10 -04:00
issues.go Fix issue detail view ignoring --owner flag (#899) 2026-02-19 18:57:23 +00:00
issues_test.go Fix issue detail view ignoring --owner flag (#899) 2026-02-19 18:57:23 +00:00
labels.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
login.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
logout.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
man.go generate man page (#811) 2025-09-14 00:17:28 +00:00
milestones.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
notifications.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
open.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
organizations.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
pulls.go feat(pulls): add JSON output support for single PR view (#864) 2026-02-19 15:16:21 +00:00
releases.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
repos.go feat(repos): add repo edit subcommand (#928) 2026-03-12 03:06:44 +00:00
times.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00
webhooks.go feat: add repository webhook management (#798) 2025-10-19 03:40:23 +00:00
whoami.go migrate tea to urfave v3 (#760) 2025-06-10 05:19:59 +00:00