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

Function hasIssueLabel

internal/database/issue_label.go:264–267  ·  view source on GitHub ↗
(e Engine, issueID, labelID int64)

Source from the content-addressed store, hash-verified

262}
263
264func hasIssueLabel(e Engine, issueID, labelID int64) bool {
265 has, _ := e.Where("issue_id = ? AND label_id = ?", issueID, labelID).Get(new(IssueLabel))
266 return has
267}
268
269// HasIssueLabel returns true if issue has been labeled.
270func HasIssueLabel(issueID, labelID int64) bool {

Callers 3

HasIssueLabelFunction · 0.85
newIssueLabelsFunction · 0.85
hasLabelMethod · 0.85

Calls 2

WhereMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected