Commit 70c7c443 authored by ale's avatar ale
Browse files

ProjectHooksManager appears to have a create() method not add()

parent 916d717d
......@@ -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,
......
Markdown is supported
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