Skip to content

Commit 29d3b65

Browse files
fix(ci): bound manual stale closure backfill
Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com>
1 parent 52e2d4e commit 29d3b65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ jobs:
387387
let lane = "";
388388
if (isPr && assigned) {
389389
lane = "assigned-pr";
390-
eligible = isOlderThan(item.created_at, 34);
390+
eligible = isOlderThan(item.created_at, 34) && isOlderThan(item.updated_at, 7);
391391
} else if (isPr) {
392392
lane = "unassigned-pr";
393393
eligible = isOlderThan(item.updated_at, 7);
@@ -422,7 +422,7 @@ jobs:
422422
counts[candidate.lane] = (counts[candidate.lane] || 0) + 1;
423423
return counts;
424424
}, {});
425-
const selected = maxClosures === 0 ? candidates : candidates.slice(0, maxClosures);
425+
const selected = candidates.slice(0, maxClosures);
426426
427427
core.info(`Dry run: ${dryRun}`);
428428
core.info(`Candidates: ${candidates.length}`);

0 commit comments

Comments
 (0)