ci: move the stale PR workflow where GitHub runs it - #2475
Merged
Merged
Conversation
stale.yml was committed to the repository root in apache#1488, where GitHub does not look for workflows, so it has never run. Move it to .github/workflows/ and enable it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
martin-g
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
stale.ymlwas committed to the repository root in #1488. GitHub only looks for workflows in.github/workflows/, so it has never run.What changes are included in this PR?
.github/workflows/stale.yml.permissionsto the top level, and addworkflow_dispatchand atimeout-minutes.Behaviour is unchanged from what #1488 intended: it runs nightly, marks PRs with no activity for 60 days as stale, and closes them 7 days later. Issues are left alone. Drafts are not exempt.
Are there any user-facing changes?
Yes, for contributors, and this needs an explicit yes from a maintainer. Because the workflow has never run, its first nightly run sweeps the whole backlog. As of 2026-09-13, 8 of the 45 open PRs had no activity for 60 days, including 3 drafts. They would be marked stale and closed 7 days later unless someone comments.
If that's not wanted, alternatives are exempting drafts (
exempt-draft-pr: true), a longer window, or deletingstale.ymlinstead.Split out of #2438 to make it easier to review.
🤖 Generated with Claude Code