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

Resolve #32196

(cherry picked from commit 74664b08a004393ce013e872e47901f52645b65a)
This commit is contained in:
Zettat123 2024-10-14 03:58:13 +08:00 committed by Gergely Nagy
parent dfe9bdd15f
commit 89446e60a6
No known key found for this signature in database
4 changed files with 9 additions and 1 deletions

View file

@ -723,6 +723,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