Skip to content

Commit b25df34

Browse files
PhilippeViennegmessner
authored andcommitted
Set event_name to visible on web and system hooks (#360)
1 parent b0ce307 commit b25df34

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/gitlab4j/api/systemhooks/SystemHookEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.fasterxml.jackson.annotation.JsonTypeInfo;
66

77
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME,
8+
visible = true,
89
property="event_name")
910
@JsonSubTypes({
1011
@JsonSubTypes.Type(value = CreateProjectSystemHookEvent.class, name = ProjectSystemHookEvent.PROJECT_CREATE_EVENT),

src/main/java/org/gitlab4j/api/webhook/Event.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME,
88
include=JsonTypeInfo.As.PROPERTY,
9+
visible = true,
910
property="object_kind")
1011
@JsonSubTypes({
1112
@JsonSubTypes.Type(value = BuildEvent.class, name = BuildEvent.OBJECT_KIND),

0 commit comments

Comments
 (0)