Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Commit c821612

Browse files
committed
Send json list of data returned from hooks
1 parent 61e713c commit c821612

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

github_webhook/webhook.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def _postreceive(self):
8484

8585
self._logger.info("%s (%s)", _format_event(event_type, data), _get_header("X-Github-Delivery"))
8686

87+
return_data = []
8788
for hook in self._hooks.get(event_type, []):
88-
hook(data)
89+
return_data.append(hook(data))
8990

90-
return "", 204
91+
return json.dumps(return_data), 200
9192

9293

9394
def _get_header(key):

0 commit comments

Comments
 (0)