--- a/hooks-queue.py Wed Aug 24 19:29:28 2016 +0800
+++ b/hooks-queue.py Wed Aug 24 19:37:29 2016 +0800
class BitbucketHookHandler(BaseHookHandler):
+ event = self.request.headers.get('X-Event-Key')
+ logging.debug('%s received event %r', self.__class__.__name__, event)
payload = self.parse_json_payload()
'url': payload['repository']['links']['html']['href'],
class GithubHookHandler(BaseHookHandler):
event = self.request.headers.get('X-GitHub-Event')
+ logging.debug('%s received event %r', self.__class__.__name__, event)
getattr(self, 'handle_' + event, self.unknown_event)()