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

Method HasRepository

internal/database/org_team.go:103–105  ·  view source on GitHub ↗

HasRepository returns true if given repository belong to team.

(repoID int64)

Source from the content-addressed store, hash-verified

101
102// HasRepository returns true if given repository belong to team.
103func (t *Team) HasRepository(repoID int64) bool {
104 return t.hasRepository(x, repoID)
105}
106
107func (t *Team) addRepository(e Engine, repo *Repository) (err error) {
108 if err = addTeamRepo(e, t.OrgID, t.ID, repo.ID); err != nil {

Callers 2

AddRepositoryMethod · 0.95
RemoveRepositoryMethod · 0.95

Calls 1

hasRepositoryMethod · 0.95

Tested by

no test coverage detected