Add commit count to update command
This commit is contained in:
parent
855daefa4d
commit
a59d642d75
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ module.exports = {
|
||||||
cmd = `git log --oneline ${commits}`;
|
cmd = `git log --oneline ${commits}`;
|
||||||
exec(cmd, (err, stdout, stderr) =>{
|
exec(cmd, (err, stdout, stderr) =>{
|
||||||
process.stdout.write(stdout)
|
process.stdout.write(stdout)
|
||||||
msg.edit(`${sendText}\n\nLatest commits:\n${stdout}`)
|
let commitCount = stdout.split(/\r\n|\r|\n/).length
|
||||||
|
msg.edit(`${sendText}\n\nLatest commits (${commitCount}):\n${stdout}`)
|
||||||
if (err) console.log(stderr)
|
if (err) console.log(stderr)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue