diff --git a/scraper/src/github-scraper/parseEvents.ts b/scraper/src/github-scraper/parseEvents.ts index 21cf13cc..131301de 100644 --- a/scraper/src/github-scraper/parseEvents.ts +++ b/scraper/src/github-scraper/parseEvents.ts @@ -202,13 +202,15 @@ export const parseEvents = async (events: IGitHubEvent[]) => { } break; case "PullRequestReviewEvent": - appendEvent(user, { - type: "pr_reviewed", - time: eventTime?.toISOString(), - title: `${event.repo.name}#${event.payload.pull_request.number}`, - link: event.payload.review.html_url, - text: event.payload.pull_request.title, - }); + if (event.payload.pull_request.user.login !== user.login) { + appendEvent(user, { + type: "pr_reviewed", + time: eventTime?.toISOString(), + title: `${event.repo.name}#${event.payload.pull_request.number}`, + link: event.payload.review.html_url, + text: event.payload.pull_request.title, + }); + } break; default: break;