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

Function IsStaring

internal/database/repo.go:2502–2505  ·  view source on GitHub ↗

IsStaring checks if user has starred given repository.

(userID, repoID int64)

Source from the content-addressed store, hash-verified

2500
2501// IsStaring checks if user has starred given repository.
2502func IsStaring(userID, repoID int64) bool {
2503 has, _ := x.Get(&Star{0, userID, repoID})
2504 return has
2505}
2506
2507func (r *Repository) GetStargazers(page int) ([]*User, error) {
2508 users := make([]*User, 0, ItemsPerPage)

Callers 2

RepoAssignmentFunction · 0.92
StarRepoFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected