()
| 812 | } |
| 813 | |
| 814 | func (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. |
| 825 | type PushCommit struct { |
nothing calls this directly
no test coverage detected