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

Method HasLabel

internal/database/issue.go:237–239  ·  view source on GitHub ↗

HasLabel returns true if issue has been labeled by given ID.

(labelID int64)

Source from the content-addressed store, hash-verified

235
236// HasLabel returns true if issue has been labeled by given ID.
237func (issue *Issue) HasLabel(labelID int64) bool {
238 return issue.hasLabel(x, labelID)
239}
240
241func (issue *Issue) sendLabelUpdatedWebhook(doer *User) {
242 var err error

Callers 1

UpdateIssueLabelFunction · 0.80

Implementers 1

mailerIssueinternal/database/issue_mail.go

Calls 1

hasLabelMethod · 0.95

Tested by

no test coverage detected