Skip to content

Commit 911cba9

Browse files
committed
fix
1 parent 5cddab4 commit 911cba9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

models/activities/action.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,13 @@ func (a *Action) GetCreate() time.Time {
393393
return a.CreatedUnix.AsTime()
394394
}
395395

396-
// GetIssueInfos returns a list of issues associated with
397-
// the action.
396+
// GetIssueInfos returns a list of associated information with the action.
398397
func (a *Action) GetIssueInfos() []string {
399-
return strings.SplitN(a.Content, "|", 3)
398+
ret := strings.SplitN(a.Content, "|", 3)
399+
for len(ret) < 3 {
400+
ret = append(ret, "")
401+
}
402+
return ret
400403
}
401404

402405
// GetIssueTitle returns the title of first issue associated with the action.

0 commit comments

Comments
 (0)