Skip to content

Commit fbf0071

Browse files
committed
Add Draft field
1 parent cb75564 commit fbf0071

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gitlab/payload.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ type ObjectAttributes struct {
725725
Target Target `json:"target"`
726726
LastCommit LastCommit `json:"last_commit"`
727727
Assignee User `json:"assignee"`
728+
Draft bool `json:"draft"`
728729
}
729730

730731
// PipelineObjectAttributes contains pipeline specific GitLab object attributes information

testdata/gitlab/merge-request-event.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"milestone_id": null,
5151
"state_id": 1,
5252
"state": "opened",
53+
"draft": false,
5354
"blocking_discussions_resolved": true,
5455
"work_in_progress": false,
5556
"first_contribution": true,

0 commit comments

Comments
 (0)