diff --git a/.github/workflows/pr-labeler.yaml b/.github/workflows/pr-labeler.yaml index d882bc50..ca3023fd 100644 --- a/.github/workflows/pr-labeler.yaml +++ b/.github/workflows/pr-labeler.yaml @@ -126,7 +126,7 @@ jobs: const pr = context.payload.pull_request; const title = pr.title || ''; const body = pr.body || ''; - const existing = new Set(pr.labels.map(l => l.name)); + const existing = new Set((pr.labels || []).map(l => l.name)); const toAdd = new Set(); // 1. Strip "[Backport release-1.x]" prefix if present.