Skip to content

Commit

Permalink
only create opened pull request when migrating from github (go-gitea#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and jeffliu27 committed Jul 18, 2019
1 parent 01cc062 commit 3ad244e
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 3ad244e

Please sign in to comment.