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

Function GetIssueByIndex

internal/database/issue.go:865–871  ·  view source on GitHub ↗

GetIssueByIndex returns issue by index in a repository.

(repoID, index int64)

Source from the content-addressed store, hash-verified

863
864// GetIssueByIndex returns issue by index in a repository.
865func GetIssueByIndex(repoID, index int64) (*Issue, error) {
866 issue, err := GetRawIssueByIndex(repoID, index)
867 if err != nil {
868 return nil, err
869 }
870 return issue, issue.LoadAttributes()
871}
872
873func getRawIssueByID(e Engine, id int64) (*Issue, error) {
874 issue := new(Issue)

Callers 14

checkPullInfoFunction · 0.92
viewIssueFunction · 0.92
getActionIssueFunction · 0.92
CreateIssueCommentFunction · 0.92
ListIssueLabelsFunction · 0.92
AddIssueLabelsFunction · 0.92
DeleteIssueLabelFunction · 0.92
ReplaceIssueLabelsFunction · 0.92
ClearIssueLabelsFunction · 0.92
GetIssueFunction · 0.92
EditIssueFunction · 0.92
GetIssueTitleMethod · 0.85

Calls 2

GetRawIssueByIndexFunction · 0.85
LoadAttributesMethod · 0.45

Tested by

no test coverage detected