()
| 802 | } |
| 803 | |
| 804 | func (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 | |
| 814 | func (a *Action) GetIssueContent() string { |
| 815 | index, _ := strconv.ParseInt(a.GetIssueInfos()[0], 10, 64) |
nothing calls this directly
no test coverage detected