Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
b25df344
Commit
b25df344
authored
May 20, 2019
by
Philippe Vienne
Committed by
Greg Messner
May 20, 2019
Browse files
Set event_name to visible on web and system hooks (#360)
parent
b0ce3072
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/systemhooks/SystemHookEvent.java
View file @
b25df344
...
...
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonSubTypes;
import
com.fasterxml.jackson.annotation.JsonTypeInfo
;
@JsonTypeInfo
(
use
=
JsonTypeInfo
.
Id
.
NAME
,
visible
=
true
,
property
=
"event_name"
)
@JsonSubTypes
({
@JsonSubTypes
.
Type
(
value
=
CreateProjectSystemHookEvent
.
class
,
name
=
ProjectSystemHookEvent
.
PROJECT_CREATE_EVENT
),
...
...
src/main/java/org/gitlab4j/api/webhook/Event.java
View file @
b25df344
...
...
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo
(
use
=
JsonTypeInfo
.
Id
.
NAME
,
include
=
JsonTypeInfo
.
As
.
PROPERTY
,
visible
=
true
,
property
=
"object_kind"
)
@JsonSubTypes
({
@JsonSubTypes
.
Type
(
value
=
BuildEvent
.
class
,
name
=
BuildEvent
.
OBJECT_KIND
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment