Fix ordering of commits in MRs... again;

This commit is contained in:
Benjamin Bouvier 2017-06-28 11:34:09 +02:00
parent 8f1a231779
commit 2492fcf83f

View File

@ -92,7 +92,7 @@ var handlers = {
say(msg); say(msg);
} else { } else {
var maybeS = numCommits === 1 ? '' : 's'; var maybeS = numCommits === 1 ? '' : 's';
var lastCommit = commits[0]; var lastCommit = commits[commits.length - 1];
var lastCommitMessage = lastCommit.message.trim().split('\n')[0].trim(); var lastCommitMessage = lastCommit.message.trim().split('\n')[0].trim();
shortenURL(lastCommit.url, function(shortUrl) { shortenURL(lastCommit.url, function(shortUrl) {
msg = 'push on ' + projectName + '@' + branchName + ' (by ' + user + '): ' + msg = 'push on ' + projectName + '@' + branchName + ' (by ' + user + '): ' +