MCPcopy Create free account
hub / github.com/gogs/gogs / CountUserRepositories

Function CountUserRepositories

internal/database/repo.go:1300–1302  ·  view source on GitHub ↗

CountUserRepositories returns number of repositories user owns. Argument private only takes effect when it is false, set it true to count all repositories.

(userID int64, private bool)

Source from the content-addressed store, hash-verified

1298// Argument private only takes effect when it is false,
1299// set it true to count all repositories.
1300func CountUserRepositories(userID int64, private bool) int64 {
1301 return countRepositories(userID, private)
1302}
1303
1304func Repositories(page, pageSize int) (_ []*Repository, err error) {
1305 repos := make([]*Repository, 0, pageSize)

Callers 2

showOrgProfileFunction · 0.92
ProfileFunction · 0.92

Calls 1

countRepositoriesFunction · 0.85

Tested by

no test coverage detected