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
1 changed files with 1 additions and 1 deletions

View File

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