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