From c95bd345ea0d3d6cd401bd0270c3f8d80835c106 Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Thu, 13 Nov 2025 11:50:54 -0800 Subject: [PATCH] Enable close-stale-contributor-prs.yml workflow (#6615) Tested on https://github.com/openai/codex/pull/3036 --- .github/workflows/close-stale-contributor-prs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/close-stale-contributor-prs.yml b/.github/workflows/close-stale-contributor-prs.yml index 6a5b8b6f7..b3cb7fb44 100644 --- a/.github/workflows/close-stale-contributor-prs.yml +++ b/.github/workflows/close-stale-contributor-prs.yml @@ -3,7 +3,7 @@ name: Close stale contributor PRs on: workflow_dispatch: schedule: - - cron: "0 9 * * *" + - cron: "0 6 * * *" permissions: contents: read @@ -22,7 +22,7 @@ jobs: const DAYS_INACTIVE = 14; const cutoff = new Date(Date.now() - DAYS_INACTIVE * 24 * 60 * 60 * 1000); const { owner, repo } = context.repo; - const dryRun = true; + const dryRun = false; const stalePrs = []; core.info(`Dry run mode: ${dryRun}`); @@ -39,10 +39,12 @@ jobs: for (const pr of prs) { const lastUpdated = new Date(pr.updated_at); if (lastUpdated > cutoff) { + core.info(`PR ${pr.number} is fresh`); continue; } if (!pr.user || pr.user.type !== "User") { + core.info(`PR ${pr.number} wasn't created by a user`); continue; }