1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Support migrating GitHub/GitLab PR draft status (#32242)

Resolve #32196
This commit is contained in:
Zettat123
2024-10-14 03:58:13 +08:00
committed by GitHub
parent 9df5ddaf44
commit 74664b08a0
4 changed files with 9 additions and 1 deletions

View File

@@ -722,6 +722,7 @@ func (g *GitlabDownloader) GetPullRequests(page, perPage int) ([]*base.PullReque
PatchURL: pr.WebURL + ".patch",
ForeignIndex: int64(pr.IID),
Context: gitlabIssueContext{IsMergeRequest: true},
IsDraft: pr.Draft,
})
// SECURITY: Ensure that the PR is safe