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
6c06521a
Unverified
Commit
6c06521a
authored
Feb 28, 2024
by
Vimsucks
Committed by
GitHub
Feb 27, 2024
Browse files
Fix wrongly named field in TeamMemberSystemHookEvent (#1092)
parent
80abfcae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/systemhooks/TeamMemberSystemHookEvent.java
View file @
6c06521a
...
...
@@ -14,7 +14,9 @@ public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent {
private
Date
createdAt
;
private
Date
updatedAt
;
private
String
eventName
;
@Deprecated
private
String
projectAccess
;
private
String
accessLevel
;
private
String
projectName
;
private
String
projectPath
;
private
Long
projectId
;
...
...
@@ -50,14 +52,30 @@ public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent {
this
.
eventName
=
eventName
;
}
/**
* No longer used. Probably replaced by {@link #getAccessLevel()}
*/
@Deprecated
public
String
getProjectAccess
()
{
return
projectAccess
;
}
/**
* No longer used. Probably replaced by {@link #setAccessLevel(String)}
*/
@Deprecated
public
void
setProjectAccess
(
String
projectAccess
)
{
this
.
projectAccess
=
projectAccess
;
}
public
String
getAccessLevel
()
{
return
accessLevel
;
}
public
void
setAccessLevel
(
String
accessLevel
)
{
this
.
accessLevel
=
accessLevel
;
}
public
String
getProjectName
()
{
return
projectName
;
}
...
...
src/test/resources/org/gitlab4j/api/team-member-system-hook-event.json
View file @
6c06521a
...
...
@@ -2,7 +2,7 @@
"created_at"
:
"2012-07-21T07:30:56Z"
,
"updated_at"
:
"2012-07-21T07:38:22Z"
,
"event_name"
:
"user_add_to_team"
,
"
project_
access"
:
"Master"
,
"access
_level
"
:
"Master"
,
"project_id"
:
74
,
"project_name"
:
"StoreCloud"
,
"project_path"
:
"storecloud"
,
...
...
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