-
Notifications
You must be signed in to change notification settings - Fork 485
Closed
Description
gitLabApi.getProjectApi().addHook(project, "https://example.com", true, true,true);The above code should register webhook with mergeEvents, pushEvents and IssueEvents. But the issueEvents is not registered and only the other 2 events are registered.
In gitlab4j, the addHook method looks like this:
public ProjectHook addHook(Object projectIdOrPath, String url, boolean doPushEvents,
boolean doIssuesEvents, boolean doMergeRequestsEvents) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("url", url)
.withParam("push_events", doPushEvents)
.withParam("issues_enabled", doIssuesEvents)
.withParam("merge_requests_events", doMergeRequestsEvents);
Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
return (response.readEntity(ProjectHook.class));
}I think it should be "issues_events instead of issues_enabled.
Btw what is the purpose of issues_enabled param?
Metadata
Metadata
Assignees
Labels
No labels