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

Function GetLabelByID

internal/database/issue_label.go:166–168  ·  view source on GitHub ↗

GetLabelByID returns a label by given ID.

(id int64)

Source from the content-addressed store, hash-verified

164
165// GetLabelByID returns a label by given ID.
166func GetLabelByID(id int64) (*Label, error) {
167 return getLabelOfRepoByID(x, 0, id)
168}
169
170// GetLabelOfRepoByID returns a label by ID in given repository.
171func GetLabelOfRepoByID(repoID, labelID int64) (*Label, error) {

Callers

nothing calls this directly

Calls 1

getLabelOfRepoByIDFunction · 0.85

Tested by

no test coverage detected