From 4f73097bbc3451786b22cb3e6f05ade9aa59d42f Mon Sep 17 00:00:00 2001 From: Javier Briones <1674192+jvbriones@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:44:06 +0200 Subject: [PATCH] chore: filter for push and schedule events to avoid forked PRs --- .github/scripts/create-flaky-test-report.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/create-flaky-test-report.mjs b/.github/scripts/create-flaky-test-report.mjs index 474a5168..27667df0 100644 --- a/.github/scripts/create-flaky-test-report.mjs +++ b/.github/scripts/create-flaky-test-report.mjs @@ -62,8 +62,11 @@ async function getWorkflowRuns(github, from, to) { } ); - // Filter to only completed runs - const completedRuns = runs.filter(run => run.status === 'completed'); + // Filter to only completed runs from push or schedule events (excludes fork PRs) + const completedRuns = runs.filter(run => + run.status === 'completed' && + (run.event === 'push' || run.event === 'schedule') + ); // Sort by created date (newest first) completedRuns.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));