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

Function IssuesCount

internal/database/issue.go:980–987  ·  view source on GitHub ↗

IssuesCount returns the number of issues by given conditions.

(opts *IssuesOptions)

Source from the content-addressed store, hash-verified

978
979// IssuesCount returns the number of issues by given conditions.
980func IssuesCount(opts *IssuesOptions) (int64, error) {
981 sess := buildIssuesQuery(opts)
982 if sess == nil {
983 return 0, nil
984 }
985
986 return sess.Count(&Issue{})
987}
988
989// Issues returns a list of issues by given conditions.
990func Issues(opts *IssuesOptions) ([]*Issue, error) {

Callers 1

listIssuesFunction · 0.92

Calls 2

buildIssuesQueryFunction · 0.85
CountMethod · 0.45

Tested by

no test coverage detected