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

Function GetLabelOfRepoByID

internal/database/issue_label.go:171–173  ·  view source on GitHub ↗

GetLabelOfRepoByID returns a label by ID in given repository.

(repoID, labelID int64)

Source from the content-addressed store, hash-verified

169
170// GetLabelOfRepoByID returns a label by ID in given repository.
171func GetLabelOfRepoByID(repoID, labelID int64) (*Label, error) {
172 return getLabelOfRepoByID(x, repoID, labelID)
173}
174
175// GetLabelOfRepoByName returns a label by name in given repository.
176func GetLabelOfRepoByName(repoID int64, labelName string) (*Label, error) {

Callers 6

UpdateIssueLabelFunction · 0.92
UpdateLabelFunction · 0.92
GetLabelFunction · 0.92
EditLabelFunction · 0.92
DeleteIssueLabelFunction · 0.92
DeleteLabelFunction · 0.85

Calls 1

getLabelOfRepoByIDFunction · 0.85

Tested by

no test coverage detected