trim All The Things!
This commit is contained in:
parent
9b0fcde3bd
commit
4e5150f94d
6
index.js
6
index.js
@ -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);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user