diff --git a/gitlab/payload.go b/gitlab/payload.go index e9d073a..cce3a6e 100644 --- a/gitlab/payload.go +++ b/gitlab/payload.go @@ -725,6 +725,7 @@ type ObjectAttributes struct { Target Target `json:"target"` LastCommit LastCommit `json:"last_commit"` Assignee User `json:"assignee"` + Draft bool `json:"draft"` } // PipelineObjectAttributes contains pipeline specific GitLab object attributes information diff --git a/testdata/gitlab/merge-request-event.json b/testdata/gitlab/merge-request-event.json index 26e5333..65ce9b5 100644 --- a/testdata/gitlab/merge-request-event.json +++ b/testdata/gitlab/merge-request-event.json @@ -50,6 +50,7 @@ "milestone_id": null, "state_id": 1, "state": "opened", + "draft": false, "blocking_discussions_resolved": true, "work_in_progress": false, "first_contribution": true,