mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
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:
committed by
GitHub
Unverified
parent
b943ca9fa1
commit
b6b449088e
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user