File tree Expand file tree Collapse file tree 6 files changed +27
-0
lines changed
src/main/java/org/gitlab4j/api/webhook Expand file tree Collapse file tree 6 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 77import org .gitlab4j .api .utils .JacksonJson ;
88import org .gitlab4j .api .webhook .MergeRequestEvent .ObjectAttributes ;
99
10+ import com .fasterxml .jackson .annotation .JsonProperty ;
11+
1012public class ExternalStatusCheckEvent implements Serializable {
1113 private static final long serialVersionUID = 1L ;
1214
@@ -15,7 +17,10 @@ public class ExternalStatusCheckEvent implements Serializable {
1517 private EventUser user ;
1618 private EventProject project ;
1719 private EventRepository repository ;
20+
21+ @ JsonProperty (value = "object_attributes" )
1822 private ObjectAttributes objectAttributes ;
23+
1924 private List <EventLabel > labels ;
2025 private MergeRequestChanges changes ;
2126 private List <Assignee > assignees ;
Original file line number Diff line number Diff line change 55import org .gitlab4j .api .models .Assignee ;
66import org .gitlab4j .api .utils .JacksonJson ;
77
8+ import com .fasterxml .jackson .annotation .JsonProperty ;
9+
810public class IssueEvent extends AbstractEvent {
911 private static final long serialVersionUID = 1L ;
1012
@@ -14,7 +16,10 @@ public class IssueEvent extends AbstractEvent {
1416 private EventUser user ;
1517 private EventProject project ;
1618 private EventRepository repository ;
19+
20+ @ JsonProperty (value = "object_attributes" )
1721 private ObjectAttributes objectAttributes ;
22+
1823 private List <Assignee > assignees ;
1924 private Assignee assignee ;
2025 private List <EventLabel > labels ;
Original file line number Diff line number Diff line change 77import org .gitlab4j .api .utils .JacksonJsonEnumHelper ;
88
99import com .fasterxml .jackson .annotation .JsonCreator ;
10+ import com .fasterxml .jackson .annotation .JsonProperty ;
1011import com .fasterxml .jackson .annotation .JsonValue ;
1112
1213public class NoteEvent extends AbstractEvent {
@@ -19,7 +20,10 @@ public class NoteEvent extends AbstractEvent {
1920 private Long projectId ;
2021 private EventProject project ;
2122 private EventRepository repository ;
23+
24+ @ JsonProperty (value = "object_attributes" )
2225 private ObjectAttributes objectAttributes ;
26+
2327 private EventCommit commit ;
2428 private EventIssue issue ;
2529 private EventMergeRequest mergeRequest ;
Original file line number Diff line number Diff line change 77import org .gitlab4j .api .models .Variable ;
88import org .gitlab4j .api .utils .JacksonJson ;
99
10+ import com .fasterxml .jackson .annotation .JsonProperty ;
11+
1012public class PipelineEvent extends AbstractEvent {
1113 private static final long serialVersionUID = 1L ;
1214
1315 public static final String X_GITLAB_EVENT = "Pipeline Hook" ;
1416 public static final String OBJECT_KIND = "pipeline" ;
1517
18+ @ JsonProperty (value = "object_attributes" )
1619 private ObjectAttributes objectAttributes ;
20+
1721 private EventUser user ;
1822 private EventProject project ;
1923 private EventCommit commit ;
Original file line number Diff line number Diff line change 22
33import org .gitlab4j .api .utils .JacksonJson ;
44
5+ import com .fasterxml .jackson .annotation .JsonProperty ;
6+
57public class WikiPageEvent extends AbstractEvent {
68 private static final long serialVersionUID = 1L ;
79
@@ -11,6 +13,8 @@ public class WikiPageEvent extends AbstractEvent {
1113 private EventUser user ;
1214 private EventProject project ;
1315 private Wiki wiki ;
16+
17+ @ JsonProperty (value = "object_attributes" )
1418 private ObjectAttributes objectAttributes ;
1519
1620 public String getObjectKind () {
Original file line number Diff line number Diff line change 55import org .gitlab4j .api .models .User ;
66import org .gitlab4j .api .utils .JacksonJson ;
77
8+ import com .fasterxml .jackson .annotation .JsonProperty ;
9+
810public class WorkItemEvent extends AbstractEvent {
911 private static final long serialVersionUID = 1L ;
1012
@@ -14,7 +16,10 @@ public class WorkItemEvent extends AbstractEvent {
1416 private User user ;
1517 private EventProject project ;
1618 private EventRepository repository ;
19+
20+ @ JsonProperty (value = "object_attributes" )
1721 private ObjectAttributes objectAttributes ;
22+
1823 private List <EventLabel > labels ;
1924 private WorkItemChanges changes ;
2025
You can’t perform that action at this time.
0 commit comments