Skip to content

Commit

Permalink
Update hook project wiki event wqattribute to wiki_page_events
Browse files Browse the repository at this point in the history
In GitLab 11.11, the Project Hook Key for wiki events was wiki_events.
We don't support GitLab 11.X. We only support GitLab 12.9.2+.
In new version of GitLab the correct key is wiki_page_events.
  • Loading branch information
jabby committed Jun 14, 2021
1 parent f9213ed commit 08b30e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/gitlab4j/api/ProjectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ public ProjectHook addHook(Object projectIdOrPath, String url, ProjectHook enabl
.withParam("confidential_note_events", enabledHooks.getConfidentialNoteEvents(), false)
.withParam("job_events", enabledHooks.getJobEvents(), false)
.withParam("pipeline_events", enabledHooks.getPipelineEvents(), false)
.withParam("wiki_events", enabledHooks.getWikiPageEvents(), false)
.withParam("wiki_page_events", enabledHooks.getWikiPageEvents(), false)
.withParam("enable_ssl_verification", enableSslVerification, false)
.withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false)
.withParam("token", secretToken, false);
Expand Down Expand Up @@ -2146,7 +2146,7 @@ public ProjectHook modifyHook(ProjectHook hook) throws GitLabApiException {
.withParam("note_events", hook.getNoteEvents(), false)
.withParam("job_events", hook.getJobEvents(), false)
.withParam("pipeline_events", hook.getPipelineEvents(), false)
.withParam("wiki_events", hook.getWikiPageEvents(), false)
.withParam("wiki_page_events", hook.getWikiPageEvents(), false)
.withParam("enable_ssl_verification", hook.getEnableSslVerification(), false)
.withParam("token", hook.getToken(), false);

Expand Down

0 comments on commit 08b30e1

Please sign in to comment.