Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/scripts/create-flaky-test-report.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading