diff --git a/ci/labels/labels.cjs b/ci/labels/labels.cjs index 5527059f6e45..809dc4581bb8 100644 --- a/ci/labels/labels.cjs +++ b/ci/labels/labels.cjs @@ -235,7 +235,7 @@ module.exports = async function ({ github, context, core, dry }) { const itemLabels = {} - if (item.pull_request) { + if (item.pull_request || context.payload.pull_request) { stats.prs++ Object.assign(itemLabels, await handlePullRequest(item)) } else {