Skip to content

Commit 78f75a4

Browse files
committed
Match api migration behavior to web behavior
1 parent 46addc1 commit 78f75a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/migrate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func Migrate(ctx *context.APIContext) {
154154
Issues: form.Issues,
155155
Milestones: form.Milestones,
156156
Labels: form.Labels,
157-
Comments: true,
157+
Comments: form.Issues || form.PullRequests,
158158
PullRequests: form.PullRequests,
159159
Releases: form.Releases,
160160
GitServiceType: gitServiceType,

0 commit comments

Comments
 (0)