Skip to content

Commit 480ef9d

Browse files
jolheiserlafrikslunnytechknowlogick
committed
Load milestone in API PR list (#9671)
* Load milestone for Issue API format Signed-off-by: jolheiser <[email protected]> * Move further down Signed-off-by: jolheiser <[email protected]> Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent e90e435 commit 480ef9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/issue.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,12 @@ func (issue *Issue) apiFormat(e Engine) *api.Issue {
403403
apiIssue.Closed = issue.ClosedUnix.AsTimePtr()
404404
}
405405

406+
issue.loadMilestone(e)
406407
if issue.Milestone != nil {
407408
apiIssue.Milestone = issue.Milestone.APIFormat()
408409
}
409-
issue.loadAssignees(e)
410410

411+
issue.loadAssignees(e)
411412
if len(issue.Assignees) > 0 {
412413
for _, assignee := range issue.Assignees {
413414
apiIssue.Assignees = append(apiIssue.Assignees, assignee.APIFormat())

0 commit comments

Comments
 (0)