modified: src/websrv.js

This commit is contained in:
Flummi 2016-09-10 18:22:53 +02:00
parent 0416434c47
commit 465b843016

View File

@ -32,8 +32,6 @@ function Websrv(tbot, tsql, tlib) {
}); });
req.on('end', () => { req.on('end', () => {
body = JSON.parse(body); body = JSON.parse(body);
//lib.log(body.commits);
var eventname = body.event_name; var eventname = body.event_name;
var autor = body.user_name; var autor = body.user_name;
var commit = body.commits[body.commits.length-1].message.replace('\n','').trim(); var commit = body.commits[body.commits.length-1].message.replace('\n','').trim();