0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 15:52:05 +01:00

only create opened pull request when migrating from github (#7463)

This commit is contained in:
Lunny Xiao 2019-07-14 17:16:15 +08:00 committed by GitHub
parent 3fc47de332
commit 2739a0be98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,7 +383,7 @@ func (g *GiteaLocalUploader) newPullRequest(pr *base.PullRequest) (*models.PullR
}
var head = "unknown repository"
if pr.IsForkPullRequest() {
if pr.IsForkPullRequest() && pr.State != "closed" {
if pr.Head.OwnerName != "" {
remote := pr.Head.OwnerName
_, ok := g.prHeadCache[remote]