chore: filter out anything by bots

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-20 09:18:17 +01:00
parent 231846b4e5
commit b8b5945990
+3 -1
View File
@@ -67,7 +67,9 @@ const getRepoEvents = async ({ github, context, pull_number }) => {
})),
];
return events.sort((a, b) => new Date(a.updated_at) - new Date(b.updated_at));
return events
.sort((a, b) => new Date(a.updated_at) - new Date(b.updated_at))
.filter(({ user }) => !user.login.includes('[bot]'));
};
module.exports = async ({ github, context, core }) => {