Skip to content

Commit c71419e

Browse files
authored
add merge option to flakiness script (#6681)
1 parent 36d9a6b commit c71419e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/flakiness.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const {
77
BRANCH,
88
CI,
99
DAYS = '1',
10+
MERGE = 'true',
1011
OCCURRENCES = '1',
1112
UNTIL
1213
} = process.env
@@ -94,7 +95,8 @@ async function checkWorkflowJobs (id, page = 1) {
9495
if (job.conclusion !== 'failure') continue
9596

9697
const workflow = job.workflow_name
97-
const name = job.name.split(' ')[0] // Merge matrix runs of same job together.
98+
// Merge matrix runs of same job together.
99+
const name = MERGE === 'true' ? job.name.split(' ')[0] : job.name
98100

99101
flaky[workflow] ??= {}
100102
flaky[workflow][name] ??= []

0 commit comments

Comments
 (0)