From 29d3b65a83913f326fdc5a14c043804bcf9b8a1e Mon Sep 17 00:00:00 2001 From: "clawsweeper[bot]" <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 03:52:23 -0700 Subject: [PATCH] fix(ci): bound manual stale closure backfill Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com> --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5d659f73171..3734768002d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -387,7 +387,7 @@ jobs: let lane = ""; if (isPr && assigned) { lane = "assigned-pr"; - eligible = isOlderThan(item.created_at, 34); + eligible = isOlderThan(item.created_at, 34) && isOlderThan(item.updated_at, 7); } else if (isPr) { lane = "unassigned-pr"; eligible = isOlderThan(item.updated_at, 7); @@ -422,7 +422,7 @@ jobs: counts[candidate.lane] = (counts[candidate.lane] || 0) + 1; return counts; }, {}); - const selected = maxClosures === 0 ? candidates : candidates.slice(0, maxClosures); + const selected = candidates.slice(0, maxClosures); core.info(`Dry run: ${dryRun}`); core.info(`Candidates: ${candidates.length}`);