Be more concise;
This commit is contained in:
parent
bda1e25f5e
commit
e6013e04c6
9
index.js
9
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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user