diff options
| author | Aiden Cline <[email protected]> | 2026-01-26 15:42:50 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-26 15:42:50 -0500 |
| commit | 6a62b44593b7be108af2245730175868ec967c1e (patch) | |
| tree | 26401fd2fc613a7e89399a9375cb033a62fba8d4 /.github/workflows | |
| parent | c700b928e4c42dbb7f5807cd4de81ea85c44aca4 (diff) | |
| download | opencode-6a62b44593b7be108af2245730175868ec967c1e.tar.gz opencode-6a62b44593b7be108af2245730175868ec967c1e.zip | |
ci: add dry-run option to stale PR closer workflow
Allows testing stale PR closure without actually closing PRs
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/close-stale-prs.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/close-stale-prs.yml b/.github/workflows/close-stale-prs.yml index a9a0502ea..787ee02e6 100644 --- a/.github/workflows/close-stale-prs.yml +++ b/.github/workflows/close-stale-prs.yml @@ -2,6 +2,11 @@ name: Close stale PRs on: workflow_dispatch: + inputs: + dryRun: + description: "Log actions without closing PRs" + type: boolean + default: false schedule: - cron: "0 6 * * *" @@ -22,7 +27,7 @@ jobs: const DAYS_INACTIVE = 60 const 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}`) |
