gitlab_webhook_receiver
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

install_hooks.py
text/x-python

Download raw (267 bytes)

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})