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

Function RemoveOrgRepo

internal/database/org.go:447–449  ·  view source on GitHub ↗

RemoveOrgRepo removes all team-repository relations of given organization.

(orgID, repoID int64)

Source from the content-addressed store, hash-verified

445
446// RemoveOrgRepo removes all team-repository relations of given organization.
447func RemoveOrgRepo(orgID, repoID int64) error {
448 return removeOrgRepo(x, orgID, repoID)
449}
450
451func (org *User) getUserTeams(e Engine, userID int64, cols ...string) ([]*Team, error) {
452 teams := make([]*Team, 0, org.NumTeams)

Callers

nothing calls this directly

Calls 1

removeOrgRepoFunction · 0.85

Tested by

no test coverage detected