Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class GroupMemberSystemHookEvent extends AbstractSystemHookEvent {

public static final String NEW_GROUP_MEMBER_EVENT = "user_add_to_group";
public static final String GROUP_MEMBER_REMOVED_EVENT = "user_remove_from_group";
public static final String GROUP_MEMBER_UPDATE_EVENT = "user_update_for_group";

private Date createdAt;
private Date updatedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
@JsonSubTypes.Type(
value = RemoveTeamMemberSystemHookEvent.class,
name = TeamMemberSystemHookEvent.TEAM_MEMBER_REMOVED_EVENT),
@JsonSubTypes.Type(
value = UpdateTeamMemberSystemHookEvent.class,
name = TeamMemberSystemHookEvent.TEAM_MEMBER_UPDATED_EVENT),
@JsonSubTypes.Type(value = CreateUserSystemHookEvent.class, name = UserSystemHookEvent.USER_CREATE_EVENT),
@JsonSubTypes.Type(value = DestroyUserSystemHookEvent.class, name = UserSystemHookEvent.USER_DESTROY_EVENT),
@JsonSubTypes.Type(
Expand All @@ -40,6 +43,9 @@
@JsonSubTypes.Type(
value = RemoveGroupMemberSystemHookEvent.class,
name = GroupMemberSystemHookEvent.GROUP_MEMBER_REMOVED_EVENT),
@JsonSubTypes.Type(
value = UpdateGroupMemberSystemHookEvent.class,
name = GroupMemberSystemHookEvent.GROUP_MEMBER_UPDATE_EVENT),
@JsonSubTypes.Type(value = PushSystemHookEvent.class, name = PushSystemHookEvent.PUSH_EVENT),
@JsonSubTypes.Type(value = TagPushSystemHookEvent.class, name = TagPushSystemHookEvent.TAG_PUSH_EVENT),
@JsonSubTypes.Type(
Expand Down Expand Up @@ -99,6 +105,10 @@ class RemoveTeamMemberSystemHookEvent extends TeamMemberSystemHookEvent {
private static final long serialVersionUID = 1L;
}

class UpdateTeamMemberSystemHookEvent extends TeamMemberSystemHookEvent {
private static final long serialVersionUID = 1L;
}

class CreateUserSystemHookEvent extends UserSystemHookEvent {
private static final long serialVersionUID = 1L;
}
Expand Down Expand Up @@ -142,3 +152,7 @@ class NewGroupMemberSystemHookEvent extends GroupMemberSystemHookEvent {
class RemoveGroupMemberSystemHookEvent extends GroupMemberSystemHookEvent {
private static final long serialVersionUID = 1L;
}

class UpdateGroupMemberSystemHookEvent extends GroupMemberSystemHookEvent {
private static final long serialVersionUID = 1L;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent {

public static final String NEW_TEAM_MEMBER_EVENT = "user_add_to_team";
public static final String TEAM_MEMBER_REMOVED_EVENT = "user_remove_from_team";
public static final String TEAM_MEMBER_UPDATED_EVENT = "user_update_for_team";

private Date createdAt;
private Date updatedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ public void testTeamMemberSystemHookEvent() throws Exception {
assertTrue(compareJson(event, "team-member-system-hook-event.json"));
}

@Test
public void testTeamMemberUpdateSystemHookEvent() throws Exception {
TeamMemberSystemHookEvent event =
unmarshalResource(TeamMemberSystemHookEvent.class, "team-member-update-system-hook-event.json");
assertTrue(compareJson(event, "team-member-update-system-hook-event.json"));
}

@Test
public void testPushSystemHookEvent() throws Exception {
PushSystemHookEvent event = unmarshalResource(PushSystemHookEvent.class, "push-system-hook-event.json");
Expand Down Expand Up @@ -271,6 +278,12 @@ public void testGroupMemberSystemHookEvent() throws Exception {
assertTrue(compareJson(event, "group-member-system-hook-event.json"));
}

@Test
public void testGroupMemberUpdateSystemHookEvent() throws Exception {
SystemHookEvent event = unmarshalResource(SystemHookEvent.class, "group-member-update-system-hook-event.json");
assertTrue(compareJson(event, "group-member-update-system-hook-event.json"));
}

@Test
public void testTagPushSystemHookEvent() throws Exception {
SystemHookEvent event = unmarshalResource(SystemHookEvent.class, "tag-push-system-hook-event.json");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"created_at": "2025-07-09T09:09:27Z",
"updated_at": "2025-09-06T07:12:24Z",
"group_name": "StoreCloud",
"group_path": "storecloud",
"group_id": 17995,
"user_username": "john-doe",
"user_name": "John Doe",
"user_email": "[email protected]",
"user_id": 12218,
"group_access": "Maintainer",
"event_name": "user_update_for_group"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"created_at": "2012-07-21T07:30:56Z",
"updated_at": "2012-07-21T07:38:22Z",
"event_name": "user_update_for_team",
"access_level": "Maintainer",
"project_id": 74,
"project_name": "StoreCloud",
"project_path": "storecloud",
"project_path_with_namespace": "jsmith/storecloud",
"user_email": "[email protected]",
"user_name": "John Smith",
"user_username": "johnsmith",
"user_id": 41,
"project_visibility": "private"
}
Loading