diff options
author | zeripath <art27@cantab.net> | 2020-10-27 21:34:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 17:34:56 -0400 |
commit | 7dfb2fc176a3d0d864b52b3124a795781cbd73e5 (patch) | |
tree | ad42ccd751788246a7a454547ccd770c6150d900 /modules/migrations/gitea_uploader.go | |
parent | 6c2c521ba5f557ed3ed6117dd6801f6d69cc1e6d (diff) | |
download | gitea-7dfb2fc176a3d0d864b52b3124a795781cbd73e5.tar.gz gitea-7dfb2fc176a3d0d864b52b3124a795781cbd73e5.zip |
Add migrated pulls to pull request task queue (#13331)
* Add migrated pulls to pull request task queue
Fix #13321
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Improve error reports
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/migrations/gitea_uploader.go')
-rw-r--r-- | modules/migrations/gitea_uploader.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go index cd1fd5cb8d..466c832754 100644 --- a/modules/migrations/gitea_uploader.go +++ b/modules/migrations/gitea_uploader.go @@ -28,6 +28,7 @@ import ( "code.gitea.io/gitea/modules/storage" "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" + "code.gitea.io/gitea/services/pull" gouuid "github.com/google/uuid" ) @@ -524,6 +525,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 } |