Skip to content

Commit 3ad244e

Browse files
lunnyjeffliu27
authored andcommitted
only create opened pull request when migrating from github (go-gitea#7463)
1 parent 01cc062 commit 3ad244e

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)