MCPcopy
hub / github.com/gogs/gogs / removeOrgRepo

Function removeOrgRepo

internal/database/org.go:438–444  ·  view source on GitHub ↗
(e Engine, orgID, repoID int64)

Source from the content-addressed store, hash-verified

436}
437
438func removeOrgRepo(e Engine, orgID, repoID int64) error {
439 _, err := e.Delete(&TeamRepo{
440 OrgID: orgID,
441 RepoID: repoID,
442 })
443 return err
444}
445
446// RemoveOrgRepo removes all team-repository relations of given organization.
447func RemoveOrgRepo(orgID, repoID int64) error {

Callers 2

removeOrgRepoMethod · 0.85
RemoveOrgRepoFunction · 0.85

Calls 1

DeleteMethod · 0.80

Tested by

no test coverage detected