Skip to content

Commit 2739a0b

Browse files
authored
only create opened pull request when migrating from github (#7463)
1 parent 3fc47de commit 2739a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/migrations/gitea.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func (g *GiteaLocalUploader) newPullRequest(pr *base.PullRequest) (*models.PullR
383383
}
384384

385385
var head = "unknown repository"
386-
if pr.IsForkPullRequest() {
386+
if pr.IsForkPullRequest() && pr.State != "closed" {
387387
if pr.Head.OwnerName != "" {
388388
remote := pr.Head.OwnerName
389389
_, ok := g.prHeadCache[remote]

0 commit comments

Comments
 (0)