in jbi/bugzilla/client.py [0:0]
def list_webhooks(self):
"""List the currently configured webhooks, including their status."""
url = f"{self.base_url}/rest/webhooks/list"
webhooks_info = self._call("GET", url)
parsed = WebhooksResponse.model_validate(webhooks_info)
if parsed.webhooks is None:
raise BugzillaClientError(
f"Unexpected response content from 'GET {url}' (no 'webhooks' field)"
)
return [wh for wh in parsed.webhooks if "/bugzilla_webhook" in wh.url]