a
This commit is contained in:
parent
58f76adeb1
commit
c101c3a5a2
4
web.py
4
web.py
@ -46,9 +46,9 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
|
|
||||||
@gen.coroutine
|
@gen.coroutine
|
||||||
def post(self):
|
def post(self):
|
||||||
# pdb.set_trace()
|
|
||||||
data = json.loads(self.request.body)
|
data = json.loads(self.request.body)
|
||||||
if data.get('event_name', None) == 'push':
|
print(data)
|
||||||
|
if data.get('event_name', None) == 'tag_push':
|
||||||
yield self._git_webhook()
|
yield self._git_webhook()
|
||||||
else:
|
else:
|
||||||
self.write("pls check args!")
|
self.write("pls check args!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user