Wire up webhooks to the UI.

This commit is contained in:
yackob03 2013-11-15 17:45:37 -05:00
parent fe67bc3d25
commit ecc5f8fba7
7 changed files with 94 additions and 7 deletions

View file

@ -973,3 +973,8 @@ def list_webhooks(namespace_name, repository_name):
joined = Webhook.select().join(Repository)
return joined.where(Repository.namespace == namespace_name,
Repository.name == repository_name)
def delete_webhook(namespace_name, repository_name, public_id):
webhook = get_webhook(namespace_name, repository_name, public_id)
webhook.delete_instance()