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

Method GetIssueContent

internal/database/actions.go:814–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

812}
813
814func (a *Action) GetIssueContent() string {
815 index, _ := strconv.ParseInt(a.GetIssueInfos()[0], 10, 64)
816 issue, err := GetIssueByIndex(a.RepoID, index)
817 if err != nil {
818 log.Error("Failed to get issue content [repo_id: %d, index: %d]: %v", a.RepoID, index, err)
819 return "error getting issue"
820 }
821 return issue.Content
822}
823
824// PushCommit contains information of a pushed commit.
825type PushCommit struct {

Callers

nothing calls this directly

Calls 3

GetIssueInfosMethod · 0.95
GetIssueByIndexFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected