Wire up webhooks to the UI.
This commit is contained in:
parent
fe67bc3d25
commit
ecc5f8fba7
7 changed files with 94 additions and 7 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue