Commit d14d712c authored by ryan.neal's avatar ryan.neal
Browse files

fix: added missing releases_events value

parent 1d48b5c0
...@@ -2074,6 +2074,7 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -2074,6 +2074,7 @@ public class ProjectApi extends AbstractApi implements Constants {
.withParam("enable_ssl_verification", enableSslVerification, false) .withParam("enable_ssl_verification", enableSslVerification, false)
.withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false) .withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false)
.withParam("deployment_events", enabledHooks.getDeploymentEvents(), false) .withParam("deployment_events", enabledHooks.getDeploymentEvents(), false)
.withParam("releases_events", enabledHooks.getReleasesEvents(), false)
.withParam("token", secretToken, false); .withParam("token", secretToken, false);
Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks"); Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
return (response.readEntity(ProjectHook.class)); return (response.readEntity(ProjectHook.class));
......
...@@ -29,6 +29,7 @@ public class ProjectHook { ...@@ -29,6 +29,7 @@ public class ProjectHook {
private String pushEventsBranchFilter; private String pushEventsBranchFilter;
private Boolean deploymentEvents; private Boolean deploymentEvents;
private Boolean releasesEvents;
public Boolean getBuildEvents() { public Boolean getBuildEvents() {
return buildEvents; return buildEvents;
...@@ -162,8 +163,16 @@ public class ProjectHook { ...@@ -162,8 +163,16 @@ public class ProjectHook {
return deploymentEvents; return deploymentEvents;
} }
public void setDeploymentEvents(Boolean deploymentEvents) { public void setDeploymentEvents(Boolean releasesEvents) {
this.deploymentEvents = deploymentEvents; this.deploymentEvents = releasesEvents;
}
public Boolean getReleasesEvents() {
return releasesEvents;
}
public void setReleasesEvents(Boolean releasesEvents) {
this.releasesEvents = releasesEvents;
} }
public Boolean getConfidentialIssuesEvents() { public Boolean getConfidentialIssuesEvents() {
...@@ -255,9 +264,13 @@ public class ProjectHook { ...@@ -255,9 +264,13 @@ public class ProjectHook {
return (this); return (this);
} }
public ProjectHook withReleasesEvents(Boolean releasesEvents) {
this.releasesEvents = releasesEvents;
return (this);
}
@Override @Override
public String toString() { public String toString() {
return (JacksonJson.toJsonString(this)); return (JacksonJson.toJsonString(this));
} }
} }
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"issues_events": true, "issues_events": true,
"confidential_issues_events": true, "confidential_issues_events": true,
"deployment_events": true, "deployment_events": true,
"releases_events": true,
"merge_requests_events": true, "merge_requests_events": true,
"tag_push_events": true, "tag_push_events": true,
"note_events": true, "note_events": true,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment