mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	only create opened pull request when migrating from github (#7463)
This commit is contained in:
		@@ -383,7 +383,7 @@ func (g *GiteaLocalUploader) newPullRequest(pr *base.PullRequest) (*models.PullR
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var head = "unknown repository"
 | 
						var head = "unknown repository"
 | 
				
			||||||
	if pr.IsForkPullRequest() {
 | 
						if pr.IsForkPullRequest() && pr.State != "closed" {
 | 
				
			||||||
		if pr.Head.OwnerName != "" {
 | 
							if pr.Head.OwnerName != "" {
 | 
				
			||||||
			remote := pr.Head.OwnerName
 | 
								remote := pr.Head.OwnerName
 | 
				
			||||||
			_, ok := g.prHeadCache[remote]
 | 
								_, ok := g.prHeadCache[remote]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user