diff options
author | zeripath | 2020-10-27 23:44:24 +0000 |
---|---|---|
committer | GitHub | 2020-10-27 19:44:24 -0400 |
commit | e6723ef167033bc9243808a6db200d7a55fedbd4 (patch) | |
tree | e6c5d2055175106af1c7687767e1831883c4889c | |
parent | 732f22ad7de0b4a5d5e6fa259c4d93dfe88ba346 (diff) |
Add migrated pulls to pull request task queue (#13331) (#13335)
Backport #13331
Fix #13321
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r-- | modules/migrations/gitea.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go index 3c711feb8..ac8cf260a 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 } |