The open source coding agent.
TypeScript
ci: add dry-run option to stale PR closer workflow
Aiden Cline6a62b44593b7
diff --git a/.github/workflows/close-stale-prs.yml b/.github/workflows/close-stale-prs.ymlindex a9a0502ea5c..787ee02e62b 100644--- a/.github/workflows/close-stale-prs.yml+++ b/.github/workflows/close-stale-prs.yml@@ -2,6 +2,11 @@ name: Close stale PRson:workflow_dispatch:+ inputs:+ dryRun:+ description: "Log actions without closing PRs"+ type: boolean+ default: falseschedule:- cron: "0 6 * * *"@@ -22,7 +27,7 @@ jobs:const DAYS_INACTIVE = 60const cutoff = new Date(Date.now() - DAYS_INACTIVE * 24 * 60 * 60 * 1000)const { owner, repo } = context.repo- const dryRun = false+ const dryRun = context.payload.inputs?.dryRun === "true"const stalePrs = []core.info(`Dry run mode: ${dryRun}`)