Update flaky-reporter.ts

This commit is contained in:
Michael Telatynski
2025-01-13 18:27:31 +00:00
committed by GitHub
parent 540580504d
commit 41944e5c6e

View File

@@ -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...`);