aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-07-29 23:41:22 +0800
committerzeripath <art27@cantab.net>2019-07-29 16:41:22 +0100
commita94ae7acb00046c21d1071e151b4e66b16571b6a (patch)
tree693981d8071ec716a11eb3d23613cb2b02e4fc79 /modules
parented3d124552d0df2c364c4aaaab88f54c42167286 (diff)
downloadgitea-a94ae7acb00046c21d1071e151b4e66b16571b6a.tar.gz
gitea-a94ae7acb00046c21d1071e151b4e66b16571b6a.zip
fix bug on migrating milestone from github (#7665)
Diffstat (limited to 'modules')
-rw-r--r--modules/migrations/gitea.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go
index 3320a8cb6d..45f324516e 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 {