From ef2a9fec2a9181835266f16b9175fe626a1bc9be Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Sep 2025 04:21:50 +0000 Subject: [PATCH 1/2] Initial plan From 580eef7409db7ab114643965a9973290e57f9573 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Sep 2025 04:26:47 +0000 Subject: [PATCH 2/2] Optimize race condition delay from 1-4s to 0.5-1.5s range Co-authored-by: BorDevTech <73800053+BorDevTech@users.noreply.github.com> --- scripts/lint-automation/github-issue-creator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lint-automation/github-issue-creator.ts b/scripts/lint-automation/github-issue-creator.ts index e874d7c..f4fd117 100644 --- a/scripts/lint-automation/github-issue-creator.ts +++ b/scripts/lint-automation/github-issue-creator.ts @@ -348,8 +348,8 @@ class GitHubIssueCreator { } // Add race condition protection: wait a random delay to prevent simultaneous creation - const delay = Math.floor(Math.random() * 3000) + 1000; // 1-4 seconds - console.log(`🕐 Waiting ${Math.round(delay/1000)}s to prevent race conditions...`); + const delay = Math.floor(Math.random() * 1000) + 500; // 0.5-1.5 seconds + console.log(`🕐 Waiting ${Math.round(delay/1000 * 10) / 10}s to prevent race conditions...`); await new Promise(resolve => setTimeout(resolve, delay)); // Final check for existing issues after delay (race condition protection)