diff --git a/.github/workflows/seed-issues.yml b/.github/workflows/seed-issues.yml index 3de0bdaa67..cc8d2d594f 100644 --- a/.github/workflows/seed-issues.yml +++ b/.github/workflows/seed-issues.yml @@ -90,7 +90,20 @@ jobs: } ]; + // Check existing open issues to avoid duplicates (idempotent seeding) + const { data: existingIssues } = await github.rest.issues.listForRepo({ + owner: context.repo.owner, + repo: context.repo.repo, + state: "open", + per_page: 100 + }); + const existingTitles = new Set(existingIssues.map(i => i.title)); + for (const issue of issues) { + if (existingTitles.has(issue.title)) { + console.log(`Skipping "${issue.title}" — already exists`); + continue; + } await github.rest.issues.create({ owner: context.repo.owner, repo: context.repo.repo, diff --git a/leaderboard.json b/leaderboard.json index 8a45e29cfc..512e0cdcb7 100644 --- a/leaderboard.json +++ b/leaderboard.json @@ -35,7 +35,7 @@ "JaBi-aka": 1, "Ingenieralejo": 2, "88olegbabak88": 4, - "lb1192176991-lab": 38, + "lb1192176991-lab": 46, "Ishant5436": 17, "18296023612": 9, "NiXouuuu": 2, @@ -236,7 +236,7 @@ "masonj9637-art": 3, "Ecoz19": 4, "russjont-cloud": 1, - "abdrassulov": 7, + "abdrassulov": 8, "SSD1222-1": 1, "starz0275": 1, "5XiaoWu5": 1, @@ -257,7 +257,7 @@ "Malaybhai11": 1, "yogeshkampalliwar": 1, "vinnnnnnn-dotcom": 1, - "sureshchouksey8": 8, + "sureshchouksey8": 9, "Dusheh": 9, "desh16gmz": 6, "chrisyangxiaoqi": 7, @@ -311,12 +311,13 @@ "danielalanbates": 1, "jmwdixen-glitch": 1, "pointless044": 1, - "daxia778": 8, + "daxia778": 11, "therealsaitama0": 1, "alanamind7": 1, "TheKingXion": 2, "LAieh12": 1, "binglang001": 1, "lamguo": 7, - "llmir": 1 + "llmir": 1, + "alKanz17": 4 }