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

Function GetTeamByID

internal/database/org_team.go:350–352  ·  view source on GitHub ↗

GetTeamByID returns team by given ID.

(teamID int64)

Source from the content-addressed store, hash-verified

348
349// GetTeamByID returns team by given ID.
350func GetTeamByID(teamID int64) (*Team, error) {
351 return getTeamByID(x, teamID)
352}
353
354func getTeamsByOrgID(e Engine, orgID int64) ([]*Team, error) {
355 teams := make([]*Team, 0, 3)

Callers 2

orgAssignmentFunction · 0.92
AddTeamMemberFunction · 0.85

Calls 1

getTeamByIDFunction · 0.85

Tested by

no test coverage detected