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 {
.withParam("enable_ssl_verification", enableSslVerification, false)
.withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false)
.withParam("deployment_events", enabledHooks.getDeploymentEvents(), false)
.withParam("releases_events", enabledHooks.getReleasesEvents(), false)
.withParam("token", secretToken, false);
Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
return (response.readEntity(ProjectHook.class));
......
......@@ -29,6 +29,7 @@ public class ProjectHook {
private String pushEventsBranchFilter;
private Boolean deploymentEvents;
private Boolean releasesEvents;
public Boolean getBuildEvents() {
return buildEvents;
......@@ -162,8 +163,16 @@ public class ProjectHook {
return deploymentEvents;
}
public void setDeploymentEvents(Boolean deploymentEvents) {
this.deploymentEvents = deploymentEvents;
public void setDeploymentEvents(Boolean releasesEvents) {
this.deploymentEvents = releasesEvents;
}
public Boolean getReleasesEvents() {
return releasesEvents;
}
public void setReleasesEvents(Boolean releasesEvents) {
this.releasesEvents = releasesEvents;
}
public Boolean getConfidentialIssuesEvents() {
......@@ -255,9 +264,13 @@ public class ProjectHook {
return (this);
}
public ProjectHook withReleasesEvents(Boolean releasesEvents) {
this.releasesEvents = releasesEvents;
return (this);
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}
......@@ -7,6 +7,7 @@
"issues_events": true,
"confidential_issues_events": true,
"deployment_events": true,
"releases_events": true,
"merge_requests_events": true,
"tag_push_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