Unverified Commit f2788c1a authored by Gautier de Saint Martin Lacaze's avatar Gautier de Saint Martin Lacaze Committed by GitHub
Browse files

Merge pull request #749 from ryneal/master

fix: added missing boolean
parents 3d327e39 d14d712c
......@@ -2073,6 +2073,8 @@ public class ProjectApi extends AbstractApi implements Constants {
.withParam("wiki_page_events", enabledHooks.getWikiPageEvents(), false)
.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));
......
......@@ -28,6 +28,9 @@ public class ProjectHook {
private Boolean confidentialNoteEvents;
private String pushEventsBranchFilter;
private Boolean deploymentEvents;
private Boolean releasesEvents;
public Boolean getBuildEvents() {
return buildEvents;
}
......@@ -83,7 +86,7 @@ public class ProjectHook {
public void setNoteEvents(Boolean noteEvents) {
this.noteEvents = noteEvents;
}
public Boolean getJobEvents() {
return jobEvents;
}
......@@ -123,7 +126,7 @@ public class ProjectHook {
public void setTagPushEvents(Boolean tagPushEvents) {
this.tagPushEvents = tagPushEvents;
}
public String getToken() {
return token;
}
......@@ -156,6 +159,22 @@ public class ProjectHook {
this.repositoryUpdateEvents = repositoryUpdateEvents;
}
public Boolean getDeploymentEvents() {
return 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() {
return confidentialIssuesEvents;
}
......@@ -179,7 +198,7 @@ public class ProjectHook {
public void setPushEventsBranchFilter(String pushEventsBranchFilter) {
this.pushEventsBranchFilter = pushEventsBranchFilter;
}
public ProjectHook withIssuesEvents(Boolean issuesEvents) {
this.issuesEvents = issuesEvents;
return (this);
......@@ -194,7 +213,7 @@ public class ProjectHook {
this.noteEvents = noteEvents;
return (this);
}
public ProjectHook withJobEvents(Boolean jobEvents) {
this.jobEvents = jobEvents;
return (this);
......@@ -240,8 +259,18 @@ public class ProjectHook {
return (this);
}
public ProjectHook withDeploymentEvents(Boolean deploymentEvents) {
this.deploymentEvents = deploymentEvents;
return (this);
}
public ProjectHook withReleasesEvents(Boolean releasesEvents) {
this.releasesEvents = releasesEvents;
return (this);
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}
\ No newline at end of file
}
......@@ -6,6 +6,8 @@
"push_events_branch_filter": "",
"issues_events": true,
"confidential_issues_events": true,
"deployment_events": true,
"releases_events": true,
"merge_requests_events": true,
"tag_push_events": true,
"note_events": true,
......@@ -14,4 +16,4 @@
"wiki_page_events": true,
"enable_ssl_verification": true,
"created_at": "2012-10-12T17:04:47Z"
}
\ No newline at end of file
}
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