We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e8a189 commit 2b63082Copy full SHA for 2b63082
scm/driver/gitlab/pr.go
@@ -307,6 +307,7 @@ type pr struct {
307
Labels []*string `json:"labels"`
308
Link string `json:"web_url"`
309
WIP bool `json:"work_in_progress"`
310
+ Draft bool `json:"draft"`
311
Author user `json:"author"`
312
MergeStatus string `json:"merge_status"`
313
SourceBranch string `json:"source_branch"`
@@ -411,7 +412,7 @@ func (s *pullService) convertPullRequest(ctx context.Context, from *pr) (*scm.Pu
411
412
Source: from.SourceBranch,
413
Target: from.TargetBranch,
414
Link: from.Link,
- Draft: from.WIP,
415
+ Draft: from.WIP || from.Draft,
416
Closed: from.State != "opened",
417
Merged: from.State == "merged",
418
Mergeable: scm.ToMergeableState(from.MergeStatus) == scm.MergeableStateMergeable,
0 commit comments