Reverse order of commits;

This commit is contained in:
Benjamin Bouvier 2016-09-19 13:17:52 +02:00
parent 174aacba41
commit 0dc2a1c0b4

View File

@ -80,7 +80,7 @@ var handlers = {
say(msg); say(msg);
} else { } else {
var maybeS = numCommits === 1 ? '' : 's'; var maybeS = numCommits === 1 ? '' : 's';
var lastCommit = commits[commits.length - 1]; var lastCommit = commits[0];
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 + '): ' +