From a94ae7acb00046c21d1071e151b4e66b16571b6a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 29 Jul 2019 23:41:22 +0800 Subject: [PATCH] fix bug on migrating milestone from github (#7665) --- modules/migrations/gitea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go index 3320a8cb6d6..45f324516e8 100644 --- a/modules/migrations/gitea.go +++ b/modules/migrations/gitea.go @@ -112,7 +112,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 {