瀏覽代碼

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

tags/v1.10.0-rc1
Lunny Xiao 4 年之前
父節點
當前提交
2739a0be98
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/migrations/gitea.go

+ 1
- 1
modules/migrations/gitea.go 查看文件

@@ -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…
取消
儲存