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

Function AddTeamRepo

internal/database/org_team.go:692–694  ·  view source on GitHub ↗

AddTeamRepo adds new repository relation to team.

(orgID, teamID, repoID int64)

Source from the content-addressed store, hash-verified

690
691// AddTeamRepo adds new repository relation to team.
692func AddTeamRepo(orgID, teamID, repoID int64) error {
693 return addTeamRepo(x, orgID, teamID, repoID)
694}
695
696func removeTeamRepo(e Engine, teamID, repoID int64) error {
697 _, err := e.Delete(&TeamRepo{

Callers

nothing calls this directly

Calls 1

addTeamRepoFunction · 0.85

Tested by

no test coverage detected