Add GitHub action to mark inactive issues and PRs as stale #1100
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.
Description
This pull request introduces a GitHub action that runs daily and will automatically mark inactive issues and PRs as stale. Keeping issues and pull requests manageable and actionable is important for a codebase's health.
The default behavior of this action will mark issues and pull requests as stale after 60 days of inactivity, by adding a label of
[Status] Stale
and leaving an explanatory comment (example). If another 7 days of inactivity pass, it will be labeled[Status] Autoclosed
and closed. (It can always be reopened, which resets the clock.)This action ignores issues and PRs with the following labels:
[Pri] Critical
[Status] Keep
dependencies
(ensures that Dependabot pull requests are not marked as stale or closed)You can easily customize the time periods used for marking an issue stale or autoclosing. Consult the documentation for details on providing overrides.
Feel free to close this pull request if it does not suit your project's needs or workflows. If you would consider merging this pull request if the action were improved in some way, please open an issue or pull request to let us know.
Deploy Notes
Upon merging, this action will run at about midnight UTC. Issues and pull requests that already meet the stale threshold will be immediately marked stale, but will not be autoclosed until an additional 7 days of inactivity pass.