Unverified Commit 08b30e1c authored by Gautier de Saint Martin Lacaze's avatar Gautier de Saint Martin Lacaze
Browse files

Update hook project wiki event wqattribute to wiki_page_events

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.
parent f9213edf
...@@ -2066,7 +2066,7 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -2066,7 +2066,7 @@ public class ProjectApi extends AbstractApi implements Constants {
.withParam("confidential_note_events", enabledHooks.getConfidentialNoteEvents(), false) .withParam("confidential_note_events", enabledHooks.getConfidentialNoteEvents(), false)
.withParam("job_events", enabledHooks.getJobEvents(), false) .withParam("job_events", enabledHooks.getJobEvents(), false)
.withParam("pipeline_events", enabledHooks.getPipelineEvents(), 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("enable_ssl_verification", enableSslVerification, false)
.withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false) .withParam("repository_update_events", enabledHooks.getRepositoryUpdateEvents(), false)
.withParam("token", secretToken, false); .withParam("token", secretToken, false);
...@@ -2146,7 +2146,7 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -2146,7 +2146,7 @@ public class ProjectApi extends AbstractApi implements Constants {
.withParam("note_events", hook.getNoteEvents(), false) .withParam("note_events", hook.getNoteEvents(), false)
.withParam("job_events", hook.getJobEvents(), false) .withParam("job_events", hook.getJobEvents(), false)
.withParam("pipeline_events", hook.getPipelineEvents(), 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("enable_ssl_verification", hook.getEnableSslVerification(), false)
.withParam("token", hook.getToken(), false); .withParam("token", hook.getToken(), false);
......
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