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

Function getIssueLabels

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

Source from the content-addressed store, hash-verified

341}
342
343func getIssueLabels(e Engine, issueID int64) ([]*IssueLabel, error) {
344 issueLabels := make([]*IssueLabel, 0, 10)
345 return issueLabels, e.Where("issue_id=?", issueID).Asc("label_id").Find(&issueLabels)
346}
347
348// GetIssueLabels returns all issue-label relations of given issue by ID.
349func GetIssueLabels(issueID int64) ([]*IssueLabel, error) {

Callers 2

getLabelsByIssueIDFunction · 0.85
GetIssueLabelsFunction · 0.85

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected