aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/migrate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go
index 09e857b5fc..efce39e520 100644
--- a/routers/api/v1/repo/migrate.go
+++ b/routers/api/v1/repo/migrate.go
@@ -154,7 +154,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,