Commit d422f77a authored by alexandre's avatar alexandre

Script to install hooks

parent b15e9ebc
import gitlab
gl = gitlab.Gitlab.from_config()
group = gl.groups.get(8)
for project in group.projects:
print(project)
for hook in project.hooks.list():
hook.delete()
project.hooks.create({'url': 'http://webhook.osp.kitchen', 'push_events': 1})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment