mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 01:54:26 +00:00
parent
11bce6fd3d
commit
a516a7ba0f
@ -403,11 +403,12 @@ func (issue *Issue) apiFormat(e Engine) *api.Issue {
|
|||||||
apiIssue.Closed = issue.ClosedUnix.AsTimePtr()
|
apiIssue.Closed = issue.ClosedUnix.AsTimePtr()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue.loadMilestone(e)
|
||||||
if issue.Milestone != nil {
|
if issue.Milestone != nil {
|
||||||
apiIssue.Milestone = issue.Milestone.APIFormat()
|
apiIssue.Milestone = issue.Milestone.APIFormat()
|
||||||
}
|
}
|
||||||
issue.loadAssignees(e)
|
|
||||||
|
|
||||||
|
issue.loadAssignees(e)
|
||||||
if len(issue.Assignees) > 0 {
|
if len(issue.Assignees) > 0 {
|
||||||
for _, assignee := range issue.Assignees {
|
for _, assignee := range issue.Assignees {
|
||||||
apiIssue.Assignees = append(apiIssue.Assignees, assignee.APIFormat())
|
apiIssue.Assignees = append(apiIssue.Assignees, assignee.APIFormat())
|
||||||
|
Loading…
Reference in New Issue
Block a user