File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -724,6 +724,7 @@ type ObjectAttributes struct {
724
724
NoteableID int64 `json:"noteable_id"` // nolint: misspell
725
725
System bool `json:"system"`
726
726
WorkInProgress bool `json:"work_in_progress"`
727
+ Draft bool `json:"draft"`
727
728
StDiffs []StDiff `json:"st_diffs"`
728
729
Source Source `json:"source"`
729
730
Target Target `json:"target"`
@@ -880,14 +881,21 @@ type Author struct {
880
881
// Changes contains all changes associated with a GitLab issue or MR
881
882
type Changes struct {
882
883
LabelChanges LabelChanges `json:"labels"`
884
+ DraftChanges DraftChanges `json:"draft"`
883
885
}
884
886
885
- // LabelChanges contains changes in labels assocatiated with a GitLab issue or MR
887
+ // LabelChanges contains changes in labels associated with a GitLab issue or MR
886
888
type LabelChanges struct {
887
889
Previous []Label `json:"previous"`
888
890
Current []Label `json:"current"`
889
891
}
890
892
893
+ // DraftChanges contains the current and previous value of the draft property, tells us if draft was toggles
894
+ type DraftChanges struct {
895
+ Previous bool `json:"previous"`
896
+ Current bool `json:"current"`
897
+ }
898
+
891
899
// Label contains all of the GitLab label information
892
900
type Label struct {
893
901
ID int64 `json:"id"`
Original file line number Diff line number Diff line change 52
52
"state" : " opened" ,
53
53
"blocking_discussions_resolved" : true ,
54
54
"work_in_progress" : false ,
55
+ "draft" : false ,
55
56
"first_contribution" : true ,
56
57
"merge_status" : " unchecked" ,
57
58
"target_project_id" : 14 ,
137
138
"previous" : null ,
138
139
"current" : 1
139
140
},
141
+ "draft" : {
142
+ "previous" : true ,
143
+ "current" : false
144
+ },
140
145
"updated_at" : {
141
146
"previous" : " 2017-09-15 16:50:55 UTC" ,
142
147
"current" :" 2017-09-15 16:52:00 UTC"
192
197
"avatar_url" : " http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026 d=identicon"
193
198
}
194
199
]
195
- }
200
+ }
You can’t perform that action at this time.
0 commit comments