Browse Source

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

tags/v1.21.12.1
Lunny Xiao GitHub 6 years ago
parent
commit
2739a0be98
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/migrations/gitea.go

+ 1
- 1
modules/migrations/gitea.go 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]


Loading…
Cancel
Save