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

Function getRawIssueByID

internal/database/issue.go:873–882  ·  view source on GitHub ↗
(e Engine, id int64)

Source from the content-addressed store, hash-verified

871}
872
873func getRawIssueByID(e Engine, id int64) (*Issue, error) {
874 issue := new(Issue)
875 has, err := e.ID(id).Get(issue)
876 if err != nil {
877 return nil, err
878 } else if !has {
879 return nil, ErrIssueNotExist{args: map[string]any{"issueID": id}}
880 }
881 return issue, nil
882}
883
884func getIssueByID(e Engine, id int64) (*Issue, error) {
885 issue, err := getRawIssueByID(e, id)

Callers 2

loadAttributesMethod · 0.85
getIssueByIDFunction · 0.85

Calls 2

GetMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected