From 25642537a5f672a3dffa7a2e9e2e9b3d9330b164 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Wed, 4 Sep 2024 19:19:53 +0530 Subject: [PATCH] Fixes #503; Correct event actor for `pr_merged` events --- scraper/src/github-scraper/parseEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/src/github-scraper/parseEvents.ts b/scraper/src/github-scraper/parseEvents.ts index 0c9bc4b1..d77e3308 100644 --- a/scraper/src/github-scraper/parseEvents.ts +++ b/scraper/src/github-scraper/parseEvents.ts @@ -166,7 +166,7 @@ export const parseEvents = async (events: IGitHubEvent[]) => { event.payload.pull_request?.merged ) { const turnaroundTime = await calculateTurnaroundTime(event); - appendEvent(user, { + appendEvent(event.payload.pull_request.user.login, { type: "pr_merged", title: `${event.repo.name}#${event.payload.pull_request.number}`, time: eventTime?.toISOString(),