diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-14 17:16:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-14 17:16:15 +0800 |
commit | 2739a0be98c0a565d7e1a7f37750c77c1df9338c (patch) | |
tree | e76bcbcbcca7eacfac5c1fabb8b96c64e5805123 /modules | |
parent | 3fc47de332ccd119a67677d364c8f9eb6a14d43c (diff) | |
download | gitea-2739a0be98c0a565d7e1a7f37750c77c1df9338c.tar.gz gitea-2739a0be98c0a565d7e1a7f37750c77c1df9338c.zip |
only create opened pull request when migrating from github (#7463)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/migrations/gitea.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go index b15aed5f4b..3320a8cb6d 100644 --- a/modules/migrations/gitea.go +++ b/modules/migrations/gitea.go @@ -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] |