Number of repositories includes the number of private repositories in profile page #11240

Closed
opened 2025-11-02 09:31:51 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Exagone313 on GitHub (Jul 16, 2023).

Description

The number of repositories displayed in the Repositories tab contains the number of private repositories.

Gitea Version

1.20.0

Can you reproduce the bug on the Gitea demo site?

Not tested (I would have if there were no captcha)

Log Gist

No response

Screenshots

23-07-16-22-46-49-824682401

Git Version

No response

Operating System

No response

How are you running Gitea?

Self built 1.20.0 with bindata (not patched)

Database

PostgreSQL

Originally created by @Exagone313 on GitHub (Jul 16, 2023). ### Description The number of repositories displayed in the `Repositories` tab contains the number of private repositories. ### Gitea Version 1.20.0 ### Can you reproduce the bug on the Gitea demo site? Not tested (I would have if there were no captcha) ### Log Gist _No response_ ### Screenshots ![23-07-16-22-46-49-824682401](https://github.com/go-gitea/gitea/assets/11819703/9afcd4a6-92de-4d08-ae1a-bdeb4448adac) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Self built 1.20.0 with bindata (not patched) ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 09:31:51 -06:00
Author
Owner

@Exagone313 commented on GitHub (Jul 16, 2023):

Gitea 1.19.4 didn't have the number of repositories displayed in the tab, so this is a new issue from 1.20.0.


@Exagone313 commented on GitHub (Jul 16, 2023): Gitea 1.19.4 didn't have the number of repositories displayed in the tab, so this is a new issue from 1.20.0. --- * Template used: https://github.com/go-gitea/gitea/blob/v1.20.0/templates/user/overview/header.tmpl#L31 * Workaround: hide the number in a `{{if (or (and (eq .SignedUserID .ContextUser.ID)) ($.IsAdmin))}}` block
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11240