Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
silver-platter
gitlab-deps
Commits
35d67dcf
Commit
35d67dcf
authored
Dec 30, 2020
by
ale
Browse files
Fix creation of project hooks
parent
70c7c443
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlab_deps/hooks.py
View file @
35d67dcf
...
...
@@ -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
,
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment