From b6b449088e8fddafbcb598a103fdf96d684a2a9c Mon Sep 17 00:00:00 2001 From: chetantoshniwal Date: Sun, 10 May 2026 23:34:28 -0700 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/project-status-sync.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/project-status-sync.yml b/.github/workflows/project-status-sync.yml index 09e1d2f3d4..0ef5275bfe 100644 --- a/.github/workflows/project-status-sync.yml +++ b/.github/workflows/project-status-sync.yml @@ -57,12 +57,18 @@ jobs: // Remove existing status labels for (const label of existingLabels) { if (allStatusLabels.includes(label)) { - await github.rest.issues.removeLabel({ - owner: repo.owner, - repo: repo.repo, - issue_number, - name: label - }).catch(() => {}); + try { + await github.rest.issues.removeLabel({ + owner: repo.owner, + repo: repo.repo, + issue_number, + name: label + }); + } catch (error) { + if (error.status !== 404) { + throw error; + } + } } }