trim All The Things!

This commit is contained in:
Benjamin Bouvier 2016-07-16 19:36:50 +02:00
parent 9b0fcde3bd
commit 4e5150f94d

View File

@ -71,7 +71,7 @@ var handlers = {
var lastCommit = commits[0]; var lastCommit = commits[0];
shortenURL(lastCommit.url, function(shortUrl) { shortenURL(lastCommit.url, function(shortUrl) {
msg.push('last commit: ' + lastCommit.message + ' : ' + shortUrl); msg.push('last commit: ' + lastCommit.message.trim() + ' : ' + shortUrl);
say(msg); say(msg);
}); });
} }
@ -93,7 +93,7 @@ var handlers = {
shortenURL(url, function(shortUrl) { shortenURL(url, function(shortUrl) {
var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")']; var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")'];
msg.push(issueTitle + ' ' + shortUrl); msg.push(issueTitle.trim() + ' ' + shortUrl);
say(msg) say(msg)
}); });
}, },
@ -115,7 +115,7 @@ var handlers = {
shortenURL(url, function(shortUrl) { shortenURL(url, function(shortUrl) {
var msg = [projectName + ': merge request (' + from + ':' + to + ') #' + id + ' has changed state ("' + state + '")']; var msg = [projectName + ': merge request (' + from + ':' + to + ') #' + id + ' has changed state ("' + state + '")'];
msg.push(title + ' ' + shortUrl); msg.push(title.trim() + ' ' + shortUrl);
say(msg); say(msg);
}); });
}, },