Skip to content

Commit

Permalink
Add comment about the repository counting
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 12, 2024
1 parent 3a1b5f9 commit d2554f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/organization/org_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func GetUserOrgsList(ctx context.Context, user *user_model.User) ([]*MinimalOrg,
OrgID int64
RepoCount int
}
// FIXME: This doesn't counting those public repos in the organization that the user has access to
var orgCounts []orgCount
if err := db.GetEngine(ctx).
Select("team.org_id, COUNT(DISTINCT(team_repo.repo_id)) as repo_count").
Expand Down

0 comments on commit d2554f2

Please sign in to comment.