-
Notifications
You must be signed in to change notification settings - Fork 273
Add stale-PR automation: mark stale at 3 weeks, close at 6 weeks of inactivity #714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Mark and close stale PRs | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "30 2 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| # PR labels and comments go through the issues API | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| stale: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/stale@v9 | ||
| with: | ||
| # PRs only — leave issues untouched | ||
| days-before-issue-stale: -1 | ||
| days-before-issue-close: -1 | ||
| days-before-pr-stale: 21 | ||
| days-before-pr-close: 21 | ||
| stale-pr-label: stale | ||
| close-pr-label: closed-stale | ||
| stale-pr-message: > | ||
| This PR has been inactive for 3 weeks and is now marked stale. | ||
| It will be closed in 3 more weeks unless there is new activity | ||
| (a comment, a push, or removal of the stale label). | ||
| close-pr-message: > | ||
| Closing this PR after 6 weeks of inactivity. Feel free to reopen | ||
| or open a new PR when you're ready to continue. | ||
| remove-stale-when-updated: true | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/cudnn-frontend
Length of output: 206
🏁 Script executed:
Repository: NVIDIA/cudnn-frontend
Length of output: 1701
🌐 Web query:
GitHub Actions Node.js 24 runner migration Node.js 20 removal fall 2026 actions/stale v10 v11 compatibility💡 Result:
GitHub Actions has undergone a mandatory migration from Node.js 20 to Node.js 24 during 2026 [1][2]. Key Migration Details: - Node.js 24 became the default runtime for GitHub Actions runners on June 16, 2026 [1][3]. - Node.js 20 removal is scheduled for the fall of 2026 [1][2]. After this removal, actions still configured to use Node.js 20 will fail [1][4]. - While temporary opt-out mechanisms (e.g., ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true) were available following the June 16 default-switch, these are strictly limited and will cease to function once Node.js 20 support is entirely removed from the runners [1]. Compatibility with actions/stale: - actions/stale v10.0.0 was the first release to upgrade the runtime from Node.js 20 to Node.js 24 [5][6]. - Compatibility with this version requires runners to be version v2.327.1 or later [5][6]. - actions/stale v11.0.0, released on July 28, 2026, further migrated the action to ESM (ECMAScript modules) and updated dependencies [7][8]. Users are advised to use the latest v11.x versions to ensure full compatibility with the Node.js 24 runtime environment [7][9]. Recommendation: Users should audit their workflows to ensure all actions are updated to versions that support Node.js 24 [1]. For actions/stale specifically, upgrading to v11.0.0 or later is recommended to maintain support and benefit from updated dependencies and ESM implementation [7].
Citations:
Update
actions/staleto v11.0.0.actions/stale@v9uses Node.js 20. Node.js 20 support will be removed from GitHub-hosted runners in fall 2026.actions/stale@v11.0.0uses Node.js 24 and requires runner v2.327.1 or later.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: MCP tools