From f5ca678576c08db435d4c1484b6576aca9096f39 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 20 Oct 2016 22:04:08 +0000 Subject: [PATCH] Update websrv.js --- src/websrv.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/websrv.js b/src/websrv.js index d7645db..319c88e 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -33,6 +33,7 @@ function Websrv(tlib) { body = JSON.parse(body); var eventname = body.event_name; var autor = body.user_name; + var branch = body.branch.split('/')[2]; var commit = ""; try { @@ -41,7 +42,7 @@ function Websrv(tlib) { catch(ex) { commit = body.commits[body.commits.length-2].message.replace('\n','').trim(); } - lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in '+body.ref, 'n0xy' ); + lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in branch '+branch, 'n0xy' ); if( lib.cfg.debugchannel === '#f0ck' ) { exec('cd ../ & git pull', (error, stdout) => {