mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
only create opened pull request when migrating from github (#7463)
This commit is contained in:
parent
3fc47de332
commit
2739a0be98
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue