diff --git a/github_webhook/webhook.py b/github_webhook/webhook.py index f4ca352..3f1a3d4 100644 --- a/github_webhook/webhook.py +++ b/github_webhook/webhook.py @@ -84,10 +84,11 @@ def _postreceive(self): self._logger.info("%s (%s)", _format_event(event_type, data), _get_header("X-Github-Delivery")) + return_data = [] for hook in self._hooks.get(event_type, []): - hook(data) + return_data.append(hook(data)) - return "", 204 + return json.dumps(return_data), 200 def _get_header(key):