From e6723ef167033bc9243808a6db200d7a55fedbd4 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 27 Oct 2020 23:44:24 +0000 Subject: [PATCH] Add migrated pulls to pull request task queue (#13331) (#13335) Backport #13331 Fix #13321 Signed-off-by: Andrew Thornton --- modules/migrations/gitea.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go index 3c711feb8b..ac8cf260a5 100644 --- a/modules/migrations/gitea.go +++ b/modules/migrations/gitea.go @@ -28,6 +28,7 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" + "code.gitea.io/gitea/services/pull" gouuid "github.com/google/uuid" ) @@ -528,6 +529,7 @@ func (g *GiteaLocalUploader) CreatePullRequests(prs ...*base.PullRequest) error } for _, pr := range gprs { g.issues.Store(pr.Issue.Index, pr.Issue.ID) + pull.AddToTaskQueue(pr) } return nil }