diff --git a/source/plugins/activity/index.mjs b/source/plugins/activity/index.mjs index cd2f6859..f159ecca 100644 --- a/source/plugins/activity/index.mjs +++ b/source/plugins/activity/index.mjs @@ -109,7 +109,7 @@ let {size, commits, ref} = payload if (commits[commits.length-1].message.startsWith("Merge branch ")) commits = [commits[commits.length-1]] - return {type:"push", actor, timestamp, repo, size, branch:ref.match(/refs.heads.(?.*)/)?.groups?.branch ?? null, commits:commits.map(({sha, message}) => ({sha:sha.substring(0, 7), message}))} + return {type:"push", actor, timestamp, repo, size, branch:ref.match(/refs.heads.(?.*)/)?.groups?.branch ?? null, commits:commits.reverse().map(({sha, message}) => ({sha:sha.substring(0, 7), message}))} } //Released case "ReleaseEvent":{