Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-deps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pipelines
tools
gitlab-deps
Commits
c48505f3
Commit
c48505f3
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
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
3 weeks ago
Stage: build
Stage: release
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab_deps/hooks.py
+3
-0
3 additions, 0 deletions
gitlab_deps/hooks.py
with
3 additions
and
0 deletions
gitlab_deps/hooks.py
+
3
−
0
View file @
c48505f3
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment