From b8b5945990fc0c208b3dcad52dbe498295a10ea7 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 20 Jan 2022 09:18:17 +0100 Subject: [PATCH] chore: filter out anything by bots Signed-off-by: blam --- scripts/goalie-labels.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/goalie-labels.js b/scripts/goalie-labels.js index c41920529c5dc..e0e0b17051f24 100644 --- a/scripts/goalie-labels.js +++ b/scripts/goalie-labels.js @@ -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 }) => {