mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-11 04:30:06 +02:00
#1854 improves
This commit is contained in:
parent
1bfebdcdf6
commit
3e7695ae91
1 changed files with 5 additions and 1 deletions
|
@ -139,7 +139,11 @@ func (a Action) GetIssueInfos() []string {
|
|||
|
||||
func (a Action) GetIssueTitle() string {
|
||||
issueID := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
|
||||
issue, _ := GetIssueByID(issueID)
|
||||
issue, err := GetIssueByID(issueID)
|
||||
if err != nil {
|
||||
log.Error(4, "GetIssueByID: %v", err)
|
||||
return "500 when get title"
|
||||
}
|
||||
return issue.Name
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue