fix bug on migrating milestone from github (#7665) (#7666)

This commit is contained in:
Lunny Xiao 2019-07-30 00:08:24 +08:00 committed by techknowlogick
parent 1e6d2e47e9
commit d4044b9c98

View file

@ -111,7 +111,7 @@ func (g *GiteaLocalUploader) CreateMilestones(milestones ...*base.Milestone) err
RepoID: g.repo.ID,
Name: milestone.Title,
Content: milestone.Description,
IsClosed: milestone.State == "close",
IsClosed: milestone.State == "closed",
DeadlineUnix: deadline,
}
if ms.IsClosed && milestone.Closed != nil {