From 7b4a437e9920b1ff522f5039281f7cefcd466640 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 1 Nov 2025 11:47:45 +0100 Subject: [PATCH] ci/github-script/labels: fix unmaintained packages The labeler currently breaks for unmaintained packages after the recent change to use maintainer maps. --- ci/github-script/labels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/github-script/labels.js b/ci/github-script/labels.js index a435e6e68bf5..adb730aa257d 100644 --- a/ci/github-script/labels.js +++ b/ci/github-script/labels.js @@ -299,10 +299,10 @@ module.exports = async ({ github, context, core, dry }) => { '11.by: package-maintainer': packages.length && packages.every((pkg) => - maintainers[pkg].includes(pull_request.user.id), + maintainers[pkg]?.includes(pull_request.user.id), ), '12.approved-by: package-maintainer': packages.some((pkg) => - maintainers[pkg].some((m) => approvals.has(m)), + maintainers[pkg]?.some((m) => approvals.has(m)), ), }) }