Skip to content
Snippets Groups Projects
Commit 70c7c443 authored by ale's avatar ale
Browse files

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

parent 916d717d
Branches
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment