From 41944e5c6eb6d9175dab0922354d13efd9ff5532 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 13 Jan 2025 18:27:31 +0000 Subject: [PATCH] Update flaky-reporter.ts --- playwright/flaky-reporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/flaky-reporter.ts b/playwright/flaky-reporter.ts index fce76fe9f74..e187b3b6896 100644 --- a/playwright/flaky-reporter.ts +++ b/playwright/flaky-reporter.ts @@ -106,7 +106,7 @@ class FlakyReporter implements Reporter { const headers = { Authorization: `Bearer ${GITHUB_TOKEN}` }; const body = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}`; - const labels = [LABEL, ...results.map((test) => test.parent.project()?.name).filter(Boolean)]; + const labels = [LABEL, ...results.map((test) => `${LABEL}-${test.parent.project()?.name}`)]; if (existingIssue) { console.log(`Found issue ${existingIssue.number} for ${flake}, adding comment...`);