Skip to content

Commit

Permalink
only create opened pull request when migrating from github (#7463)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Jul 14, 2019
1 parent 3fc47de commit 2739a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2739a0b

Please sign in to comment.