Issue 353 stale cleanup#369
Open
pritkc wants to merge 2 commits into
Open
Conversation
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.
What type of PR is this? (check all applicable)
Description
Adds automated inactivity management for open issues, pull requests, and draft pull requests.
The workflow:
staleafter 28 inactive days and posts a close warning.stalewhen human activity happens after the stale warning.keep-open.keep-openitems every 28 inactive days.keep-openitems stale and never closes them.keep-openrequest section to issue and PR templates.Human activity includes non-bot comments, issue/PR edits, label changes, PR commits, and PR reviews.
Related Issues & Documents
Maintainer Notes
No manual label setup is required for normal operation. On a non-debug run, the workflow creates or updates:
stale: used by the workflow for items scheduled for automatic closure.keep-open: manually applied by maintainers when an issue or PR should stay open despite inactivity.Maintainers only need to apply
keep-openwhen they want to protect an item from stale handling. Ifkeep-openis applied to an item that already hasstale, the next workflow scan removesstale.After merge, maintainers can run the workflow manually from the Actions tab with
debug_only: trueto preview behavior without comments, labels, or closures.GitHub Workflow Test Methodology
The workflow was tested on the fork default branch so
workflow_dispatchcould run exactly as it will after merge.Fork setup used for runtime tests:
actions/github-script@v9: Update fork stale workflow test to github-script v9 pritkc/mole#5Runtime workflow runs:
stale: https://github.com/pritkc/mole/actions/runs/25958059568Test artifacts:
What was verified:
staleandkeep-open.staleplus a close warning.keep-openissues receive reminder-only comments, are not marked stale, and are not closed.stale.Static workflow checks:
.github/workflows/stale.yml.actionlintpassed for.github/workflows/stale.yml.actions/github-scriptJavaScript syntax check passed.git diff --checkpassed.Added/updated tests?
We encourage you to test all code included with MOLE, including examples.
have not been included
Read Contributing Guide and Code of Conduct
Post-merge Task
Run the workflow manually once with
debug_only: trueto preview the first production scan before allowing the scheduled run to make changes.