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; },