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

Always update webhook_token on set-hooks

parent cd4571bc
No related branches found
No related tags found
No related merge requests found
Pipeline #93220 passed
...@@ -6,6 +6,9 @@ def check_hook(gl, hook_url, webhook_token, project_path, dry_run): ...@@ -6,6 +6,9 @@ def check_hook(gl, hook_url, webhook_token, project_path, dry_run):
found = False found = False
for h in project.hooks.list(): for h in project.hooks.list():
if h.url == hook_url and h.pipeline_events: if h.url == hook_url and h.pipeline_events:
if not dry_run:
h.token = webhook_token
h.save()
found = True found = True
break break
if found: if found:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment