fix(ci): respect exempt labels when closing stale items (#26475)

This commit is contained in:
Christian Gunderman
2026-05-04 23:00:14 +00:00
committed by GitHub
parent a79da4f3a9
commit 04e875c5c8
+1 -1
View File
@@ -154,7 +154,7 @@ module.exports = async ({ github, context, core }) => {
// 3. Handle Stale Close (14 days with stale label)
await processItems(
`repo:${owner}/${repo} is:open label:"${STALE_LABEL}" updated:<${closeThreshold.toISOString()}`,
`repo:${owner}/${repo} is:open label:"${STALE_LABEL}" ${exemptQuery} updated:<${closeThreshold.toISOString()}`,
async (item) => {
core.info(`Closing stale item #${item.number}.`);
if (!dryRun) {