Skip to content
Snippets Groups Projects
Commit 35d67dcf authored by ale's avatar ale
Browse files

Fix creation of project hooks

parent 70c7c443
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ 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.create(
url=hook_url,
pipeline_events=True,
token=webhook_token,
)
project.hooks.create({
'url': hook_url,
'push_events': False,
'pipeline_events': True,
'token': webhook_token,
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment