Tweaks to previous MR;
This commit is contained in:
parent
06d8c9536b
commit
3410be5d5c
9
index.js
9
index.js
@ -127,14 +127,11 @@ var handlers = {
|
|||||||
if (issue.action === 'update')
|
if (issue.action === 'update')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Make action displayable :
|
// Make action displayable (e.g., open -> opened, close -> closed, merge -> merged).
|
||||||
// open -> opened
|
var displayedAction = issue.action + (issue.action.substr(-1) === 'e' ? '' : 'e') + 'd';
|
||||||
// close -> closed
|
|
||||||
// merge -> merged
|
|
||||||
var displayedAction = issue.action.substr(-1) === 'e' ? issue.action + 'd' : issue.action + 'ed';
|
|
||||||
|
|
||||||
shortenURL(url, function(shortUrl) {
|
shortenURL(url, function(shortUrl) {
|
||||||
var msg = user + ' ' + displayedAction ' issue #' + issueNumber + ' ("' + issueTitle + '") on ' + projectName + ' ' + shortUrl;
|
var msg = user + ' ' + displayedAction + ' issue #' + issueNumber + ' ("' + issueTitle + '") on ' + projectName + ' ' + shortUrl;
|
||||||
say(msg);
|
say(msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user