Skip to content

Commit

Permalink
Properly sort commits chronologically (2)
Browse files Browse the repository at this point in the history
Apparently that didn't work
  • Loading branch information
Hans5958 committed May 13, 2021
1 parent 9d919bc commit f98bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = async () => {
break;
case "PushEvent":
const branch = payload.ref.slice(11)
payload.commits.sort(() => 1).forEach(commit => {
payload.commits.reverse().forEach(commit => {
if (commit.author.name === "Hans5958") {
const hash = commit.sha
commits.push(`[\`${hash.substr(0, 7)}\`](${repoLink}/commit/${hash}) ${commit['message'].split("\n")[0]} (${repoLinkMarkdown}, [${branch}](${repoLink}/tree/${branch}))`)
Expand Down

0 comments on commit f98bf63

Please sign in to comment.