diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index ed371d787ccb6..ecfbb1e45b33e 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.go @@ -155,7 +155,7 @@ func Migrate(ctx *context.APIContext) { Issues: form.Issues, Milestones: form.Milestones, Labels: form.Labels, - Comments: true, + Comments: form.Issues || form.PullRequests, PullRequests: form.PullRequests, Releases: form.Releases, GitServiceType: gitServiceType,