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

Function GetRepositoryByID

internal/database/repo.go:1807–1809  ·  view source on GitHub ↗

GetRepositoryByID returns the repository by given id if exists.

(id int64)

Source from the content-addressed store, hash-verified

1805
1806// GetRepositoryByID returns the repository by given id if exists.
1807func GetRepositoryByID(id int64) (*Repository, error) {
1808 return getRepositoryByID(x, id)
1809}
1810
1811type UserRepoOptions struct {
1812 UserID int64

Callers 12

IssuesFunction · 0.92
SettingsLeaveRepoFunction · 0.92
parseBaseRepositoryFunction · 0.92
DeleteRepoFunction · 0.92
DeleteReleaseOfRepoByIDFunction · 0.85
ChangeMilestoneStatusFunction · 0.85
AfterSetMethod · 0.85
testPatchMethod · 0.85
RemoveRepositoryMethod · 0.85
CheckRepoStatsFunction · 0.85
DeleteDeployKeyFunction · 0.85

Calls 1

getRepositoryByIDFunction · 0.85

Tested by

no test coverage detected