Fix ordering of commits in MRs... again;
This commit is contained in:
parent
8f1a231779
commit
2492fcf83f
2
index.js
2
index.js
@ -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 + '): ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user