From 70c7c4435d4625c9b4fc0045838bffce570d0e55 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Mon, 28 Dec 2020 17:42:46 +0000 Subject: [PATCH] ProjectHooksManager appears to have a create() method not add() --- gitlab_deps/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab_deps/hooks.py b/gitlab_deps/hooks.py index 5f53b21..abaf399 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, -- GitLab