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

Function GetLabelsByIssueID

internal/database/issue_label.go:211–213  ·  view source on GitHub ↗

GetLabelsByIssueID returns all labels that belong to given issue by ID.

(issueID int64)

Source from the content-addressed store, hash-verified

209
210// GetLabelsByIssueID returns all labels that belong to given issue by ID.
211func GetLabelsByIssueID(issueID int64) ([]*Label, error) {
212 return getLabelsByIssueID(x, issueID)
213}
214
215func updateLabel(e Engine, l *Label) error {
216 _, err := e.ID(l.ID).AllCols().Update(l)

Callers 2

AddIssueLabelsFunction · 0.92
ReplaceIssueLabelsFunction · 0.92

Calls 1

getLabelsByIssueIDFunction · 0.85

Tested by

no test coverage detected