Skip to content

Commit

Permalink
Add migrated pulls to pull request task queue (#13331) (#13335)
Browse files Browse the repository at this point in the history
Backport #13331

Fix #13321

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath authored Oct 27, 2020
1 parent 732f22a commit e6723ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/migrations/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e6723ef

Please sign in to comment.