Commit 9ccc4d41 authored by Greg Messner's avatar Greg Messner
Browse files

Fixed issues_events param name in addHook() (#394).

parent 683f52fe
...@@ -1847,7 +1847,7 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -1847,7 +1847,7 @@ public class ProjectApi extends AbstractApi implements Constants {
GitLabApiForm formData = new GitLabApiForm() GitLabApiForm formData = new GitLabApiForm()
.withParam("url", url) .withParam("url", url)
.withParam("push_events", doPushEvents) .withParam("push_events", doPushEvents)
.withParam("issues_enabled", doIssuesEvents) .withParam("issues_events", doIssuesEvents)
.withParam("merge_requests_events", doMergeRequestsEvents); .withParam("merge_requests_events", doMergeRequestsEvents);
Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks"); Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
......
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