Skip to content

ci: convert stale PRs back to draft - #55

Merged
goastler merged 1 commit into
mainfrom
ci/stale-pr-to-draft
Aug 12, 2026
Merged

ci: convert stale PRs back to draft#55
goastler merged 1 commit into
mainfrom
ci/stale-pr-to-draft

Conversation

@goastler

Copy link
Copy Markdown
Member

Same workflow as https://github.com/prosopo/captcha-private/pull/4117, copied verbatim — it reads $GITHUB_REPOSITORY, so nothing is repo-specific.

Daily cron plus a workflow_dispatch whose dry-run input defaults to true. Converts non-draft PRs with no update for 7 days back to draft, which stops them launching CI runs, and comments on each saying why and how to undo it (gh pr ready <n>).

Excluded: PRs with auto-merge enabled (drafting one silently cancels its merge, since converting to draft disables auto-merge and re-readying does not restore it), approved PRs, and anything labelled keep-ready. That label does not exist in this repo yet, so the opt-out is inert until it is created.

The 7-day threshold is the review question; it is a dispatch input as well as a default.

Suggested first step after merge: dispatch it with the dry run left on and read the list before letting the schedule touch anything.

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for peaceful-pothos-9e62ce ready!

Name Link
🔨 Latest commit 22cb259
🔍 Latest deploy log https://app.netlify.com/projects/peaceful-pothos-9e62ce/deploys/6a7b92a263da6c00080d66bc
😎 Deploy Preview https://deploy-preview-55--peaceful-pothos-9e62ce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@goastler
goastler marked this pull request as ready for review August 12, 2026 07:06
@goastler
goastler merged commit 43503cc into main Aug 12, 2026
4 checks passed
@goastler
goastler deleted the ci/stale-pr-to-draft branch August 12, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant