From e6013e04c65f2c0418cc623f08ca791c694177f4 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 23 Jun 2016 22:26:52 +0200 Subject: [PATCH] Be more concise; --- index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 62817ea..c68ab92 100644 --- a/index.js +++ b/index.js @@ -35,8 +35,7 @@ var handlers = { if (commits.length < 4) { msg = msg.concat(commits.map(formatCommit)); } else { - msg.push(formatCommit(commits[0])); - msg.push('...'); + msg.push(formatCommit(commits[0]) + ' ...'); msg.push(formatCommit(commits[commits.length - 1])); } @@ -54,8 +53,7 @@ var handlers = { var url = issue.url; var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")']; - msg.push(issueTitle); - msg.push(url); + msg.push(issueTitle + ' ' + url); return msg; }, @@ -76,8 +74,7 @@ var handlers = { var state = request.state; var msg = [projectName + ': merge request (' + from + ':' + to + ') #' + id + ' has changed state ("' + state + '")']; - msg.push(title); - msg.push(url); + msg.push(title + ' ' + url); return msg; },