diff --git a/gitlab_deps/hooks.py b/gitlab_deps/hooks.py index 5f53b2113e83473cc8a4f24da4e75ea9f2421c97..abaf3993d303c6a3a1049eadaa8c92fbf02054bb 100644 --- a/gitlab_deps/hooks.py +++ b/gitlab_deps/hooks.py @@ -12,7 +12,7 @@ def check_hook(gl, hook_url, webhook_token, project_path, dry_run): return logging.info('adding pipeline_events hook to %s', project_path) if not dry_run: - project.hooks.add( + project.hooks.create( url=hook_url, pipeline_events=True, token=webhook_token,