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
57a7cc54
Unverified
Commit
57a7cc54
authored
Apr 11, 2021
by
Gautier de Saint Martin Lacaze
Committed by
GitHub
Apr 11, 2021
Browse files
Merge pull request #670 from yuezhuangshi/add-field-to-note-event
Add more field to NoteEvent.ObjectAttributes
parents
955d1a36
abd17e08
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/NoteEvent.java
View file @
57a7cc54
...
...
@@ -131,6 +131,8 @@ public class NoteEvent extends AbstractEvent {
private
Integer
id
;
private
String
note
;
private
String
discussionId
;
private
String
type
;
private
NoteableType
noteableType
;
private
Integer
authorId
;
private
Date
createdAt
;
...
...
@@ -160,6 +162,22 @@ public class NoteEvent extends AbstractEvent {
this
.
note
=
note
;
}
public
String
getDiscussionId
()
{
return
discussionId
;
}
public
void
setDiscussionId
(
String
discussionId
)
{
this
.
discussionId
=
discussionId
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
NoteableType
getNoteableType
()
{
return
noteableType
;
}
...
...
src/test/resources/org/gitlab4j/api/note-commit-event.json
View file @
57a7cc54
...
...
@@ -30,6 +30,8 @@
"object_attributes"
:
{
"id"
:
1243
,
"note"
:
"This is a commit comment. How does this work?"
,
"discussion_id"
:
"56e2b4210419aed077d47ca2dc00551c7c4ac882"
,
"type"
:
"DiscussionNote"
,
"noteable_type"
:
"Commit"
,
"author_id"
:
1
,
"created_at"
:
"2015-05-17T18:08:09Z"
,
...
...
src/test/resources/org/gitlab4j/api/note-issue-event.json
View file @
57a7cc54
...
...
@@ -29,6 +29,8 @@
"object_attributes"
:
{
"id"
:
1241
,
"note"
:
"Hello world"
,
"discussion_id"
:
"56e2b4210419aed077d47ca2dc00551c7c4ac882"
,
"type"
:
"DiscussionNote"
,
"noteable_type"
:
"Issue"
,
"author_id"
:
1
,
"created_at"
:
"2015-05-17T17:06:40Z"
,
...
...
src/test/resources/org/gitlab4j/api/note-merge-request-event.json
View file @
57a7cc54
...
...
@@ -30,6 +30,8 @@
"object_attributes"
:
{
"id"
:
1244
,
"note"
:
"This MR needs work."
,
"discussion_id"
:
"56e2b4210419aed077d47ca2dc00551c7c4ac882"
,
"type"
:
"DiscussionNote"
,
"noteable_type"
:
"MergeRequest"
,
"author_id"
:
1
,
"created_at"
:
"2015-05-17T18:21:36Z"
,
...
...
src/test/resources/org/gitlab4j/api/note-snippet-event.json
View file @
57a7cc54
...
...
@@ -30,6 +30,8 @@
"object_attributes"
:
{
"id"
:
1245
,
"note"
:
"Is this snippet doing what it's supposed to be doing?"
,
"discussion_id"
:
"56e2b4210419aed077d47ca2dc00551c7c4ac882"
,
"type"
:
"DiscussionNote"
,
"noteable_type"
:
"Snippet"
,
"author_id"
:
1
,
"created_at"
:
"2015-05-17T18:35:50Z"
,
...
...
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