Issues with the repository search API #331

Closed
opened 2025-11-02 03:18:54 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @andreynering on GitHub (Feb 8, 2017).

  • Gitea version (or commit ref): c5887b0f28
  • Git version: 2.9.3
  • Operating system: Ubuntu 16.10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Take a look at https://try.gitea.io/api/v1/repos/search?q=gitea

  • Many attributes are returning the zero value:
    • name is always "". (full_name is OK)
    • description, html_url, clone_url, default_branch and website also always ""
    • stars_count, forks_count, watchers_count, open_issues_count always 0
    • created_at and updated_at always 0001-01-01T00:00:00Z
    • fork and private always false

Also:

  • Private repos are not being showed. Should be showed if the user has access to it, or at least if they is the owner.
  • Missing mirror attribute, to know if repo is a mirror.
Originally created by @andreynering on GitHub (Feb 8, 2017). - Gitea version (or commit ref): c5887b0f28d6915e843f9ca69c42e90577122f99 - Git version: 2.9.3 - Operating system: Ubuntu 16.10 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant ## Description Take a look at https://try.gitea.io/api/v1/repos/search?q=gitea - Many attributes are returning the zero value: - `name` is always `""`. (`full_name` is OK) - `description`, `html_url`, `clone_url`, `default_branch` and `website` also always `""` - `stars_count`, `forks_count`, `watchers_count`, `open_issues_count` always `0` - `created_at` and `updated_at` always `0001-01-01T00:00:00Z` - `fork` and `private` always `false` Also: - Private repos are not being showed. Should be showed if the user has access to it, or at least if they is the owner. - Missing `mirror` attribute, to know if repo is a mirror.
GiteaMirror added the type/bugmodifies/api labels 2025-11-02 03:18:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#331