Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
chetantoshniwal
2026-05-10 23:34:28 -07:00
committed by GitHub
Unverified
parent b943ca9fa1
commit b6b449088e
+12 -6
View File
@@ -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;
}
}
}
}