From e19ae5067c93959a516475823821b131b9e03a0e Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Wed, 11 Dec 2024 00:43:28 +0530 Subject: [PATCH] Fixed fetch events for bots --- scraper/src/github-scraper/fetchEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/src/github-scraper/fetchEvents.ts b/scraper/src/github-scraper/fetchEvents.ts index 1913de32..d78931bf 100644 --- a/scraper/src/github-scraper/fetchEvents.ts +++ b/scraper/src/github-scraper/fetchEvents.ts @@ -27,7 +27,7 @@ export const fetchEvents = async (org: string) => { console.debug(`Skipping event without type`); return false; } - if (event.actor.login.includes("[bot]")) { + if (event.actor.login.endsWith("[bot]")) { return false; } if (BlacklistedUsers.includes(event.actor.login)) {