Skip to content

Commit 3bd9b4d

Browse files
committed
renamed static vars to be consistent
1 parent 49cd870 commit 3bd9b4d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/gitlab4j/api/webhook/DeploymentEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class DeploymentEvent extends AbstractEvent {
77

8-
public static final String JOB_HOOK_X_GITLAB_EVENT = "Deployment Hook";
8+
public static final String X_GITLAB_EVENT = "Deployment Hook";
99
public static final String OBJECT_KIND = "deployment";
1010

1111
private String status;

src/main/java/org/gitlab4j/api/webhook/ReleaseEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class ReleaseEvent extends AbstractEvent {
66

7-
public static final String JOB_HOOK_X_GITLAB_EVENT = "Release Hook";
7+
public static final String X_GITLAB_EVENT = "Release Hook";
88
public static final String OBJECT_KIND = "release";
99

1010
private Integer id;

src/main/java/org/gitlab4j/api/webhook/WebHookManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public Event handleRequest(HttpServletRequest request) throws GitLabApiException
105105
case PushEvent.X_GITLAB_EVENT:
106106
case TagPushEvent.X_GITLAB_EVENT:
107107
case WikiPageEvent.X_GITLAB_EVENT:
108-
case DeploymentEvent.JOB_HOOK_X_GITLAB_EVENT:
109-
case ReleaseEvent.JOB_HOOK_X_GITLAB_EVENT:
108+
case DeploymentEvent.X_GITLAB_EVENT:
109+
case ReleaseEvent.X_GITLAB_EVENT:
110110
break;
111111

112112
default:

0 commit comments

Comments
 (0)