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

Method GetIssueTitle

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

Source from the content-addressed store, hash-verified

802}
803
804func (a *Action) GetIssueTitle() string {
805 index, _ := strconv.ParseInt(a.GetIssueInfos()[0], 10, 64)
806 issue, err := GetIssueByIndex(a.RepoID, index)
807 if err != nil {
808 log.Error("Failed to get issue title [repo_id: %d, index: %d]: %v", a.RepoID, index, err)
809 return "error getting issue"
810 }
811 return issue.Title
812}
813
814func (a *Action) GetIssueContent() string {
815 index, _ := strconv.ParseInt(a.GetIssueInfos()[0], 10, 64)

Callers

nothing calls this directly

Calls 3

GetIssueInfosMethod · 0.95
GetIssueByIndexFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected