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
1737dd48
Commit
1737dd48
authored
Jul 24, 2019
by
Greg Messner
Browse files
Added support for and testing of user_username field (#416).
parent
5342c497
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/AbstractPushEvent.java
View file @
1737dd48
...
...
@@ -15,6 +15,7 @@ public abstract class AbstractPushEvent {
private
Integer
userId
;
private
String
userName
;
private
String
userUsername
;
private
String
userEmail
;
private
String
userAvatar
;
...
...
@@ -37,7 +38,7 @@ public abstract class AbstractPushEvent {
}
public
String
getAfter
()
{
return
this
.
after
;
return
after
;
}
public
void
setAfter
(
String
after
)
{
...
...
@@ -45,7 +46,7 @@ public abstract class AbstractPushEvent {
}
public
String
getBefore
()
{
return
this
.
before
;
return
before
;
}
public
void
setBefore
(
String
before
)
{
...
...
@@ -53,7 +54,7 @@ public abstract class AbstractPushEvent {
}
public
String
getRef
()
{
return
this
.
ref
;
return
ref
;
}
public
void
setRef
(
String
ref
)
{
...
...
@@ -69,7 +70,7 @@ public abstract class AbstractPushEvent {
}
public
Integer
getUserId
()
{
return
this
.
userId
;
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
...
...
@@ -77,13 +78,21 @@ public abstract class AbstractPushEvent {
}
public
String
getUserName
()
{
return
this
.
userName
;
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserUsername
()
{
return
userUsername
;
}
public
void
setUserUsername
(
String
userUsername
)
{
this
.
userUsername
=
userUsername
;
}
public
String
getUserEmail
()
{
return
userEmail
;
}
...
...
@@ -101,7 +110,7 @@ public abstract class AbstractPushEvent {
}
public
Integer
getProjectId
()
{
return
this
.
projectId
;
return
projectId
;
}
public
void
setProjectId
(
Integer
projectId
)
{
...
...
@@ -117,7 +126,7 @@ public abstract class AbstractPushEvent {
}
public
EventRepository
getRepository
()
{
return
this
.
repository
;
return
repository
;
}
public
void
setRepository
(
EventRepository
repository
)
{
...
...
@@ -125,7 +134,7 @@ public abstract class AbstractPushEvent {
}
public
List
<
EventCommit
>
getCommits
()
{
return
this
.
commits
;
return
commits
;
}
public
void
setCommits
(
List
<
EventCommit
>
commits
)
{
...
...
@@ -133,7 +142,7 @@ public abstract class AbstractPushEvent {
}
public
Integer
getTotalCommitsCount
()
{
return
this
.
totalCommitsCount
;
return
totalCommitsCount
;
}
public
void
setTotalCommitsCount
(
Integer
totalCommitsCount
)
{
...
...
src/test/resources/org/gitlab4j/api/push-event.json
View file @
1737dd48
...
...
@@ -6,6 +6,7 @@
"checkout_sha"
:
"da1560886d4f094c3e6c9ef40349f7d38b5d27d7"
,
"user_id"
:
4
,
"user_name"
:
"John Smith"
,
"user_username"
:
"jsmith"
,
"user_email"
:
"john@example.com"
,
"user_avatar"
:
"https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80"
,
"project_id"
:
15
,
...
...
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