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
2f85b815
Unverified
Commit
2f85b815
authored
Apr 26, 2023
by
Jérémie Bresson
Committed by
GitHub
Apr 26, 2023
Browse files
Add "id" to Event (#960)
Fixes #883
parent
73c78a15
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Event.java
View file @
2f85b815
...
...
@@ -8,6 +8,7 @@ import org.gitlab4j.api.utils.JacksonJson;
public
class
Event
{
private
Long
id
;
private
String
actionName
;
private
Author
author
;
private
Long
authorId
;
...
...
@@ -24,6 +25,14 @@ public class Event {
private
Note
note
;
private
PushData
pushData
;
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getActionName
()
{
return
actionName
;
}
...
...
src/test/resources/org/gitlab4j/api/event.json
View file @
2f85b815
{
"id"
:
2
,
"title"
:
"this is a title"
,
"project_id"
:
15
,
"action_name"
:
"pushed"
,
...
...
src/test/resources/org/gitlab4j/api/events.json
View file @
2f85b815
[
{
"id"
:
8
,
"title"
:
"no title"
,
"project_id"
:
15
,
"action_name"
:
"closed"
,
"target_id"
:
830
,
"target_iid"
:
160
,
"target_type"
:
"Issue"
,
"author_id"
:
1
,
"target_title"
:
"Public project search field"
,
"created_at"
:
"2017-02-09T10:43:19.667Z"
,
"author"
:
{
"name"
:
"Dmitriy Zaporozhets"
,
"username"
:
"root"
,
...
...
@@ -18,6 +21,7 @@
"author_username"
:
"root"
},
{
"id"
:
9
,
"title"
:
"no title 2"
,
"project_id"
:
15
,
"action_name"
:
"pushed"
,
...
...
@@ -42,6 +46,7 @@
}
},
{
"id"
:
21
,
"project_id"
:
15
,
"action_name"
:
"closed"
,
"target_id"
:
840
,
...
...
@@ -59,10 +64,12 @@
"author_username"
:
"root"
},
{
"id"
:
10
,
"title"
:
"no title again"
,
"project_id"
:
15
,
"action_name"
:
"commented on"
,
"target_id"
:
1312
,
"target_iid"
:
1312
,
"target_type"
:
"Note"
,
"author_id"
:
1
,
"created_at"
:
"2015-12-04T10:33:58.089Z"
,
...
...
@@ -80,7 +87,8 @@
"created_at"
:
"2015-12-04T10:33:56.698Z"
,
"system"
:
false
,
"noteable_id"
:
377
,
"noteable_type"
:
"Issue"
"noteable_type"
:
"Issue"
,
"noteable_iid"
:
377
},
"author"
:
{
"name"
:
"Dmitriy Zaporozhets"
,
...
...
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