diff --git a/src/websrv.js b/src/websrv.js index 319c88e..65c86ee 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -33,7 +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 branch = body.ref.split('/')[2]; var commit = ""; try {