Description
Add a GitHub Actions workflow that automatically labels and closes stale issues and pull requests after a period of inactivity.
Why
As the project grows and attracts community contributions, stale issues and PRs accumulate. Automated management keeps the issue tracker healthy and signals to contributors that the project is actively maintained.
Acceptance Criteria
Example
name: Stale Issues
on:
schedule:
- cron: '0 0 * * 1' # Weekly on Monday
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: >
This issue has been automatically marked as stale due to
60 days of inactivity. It will be closed in 14 days if
no further activity occurs.
days-before-stale: 60
days-before-close: 14
exempt-issue-labels: 'priority: high,help wanted'
Description
Add a GitHub Actions workflow that automatically labels and closes stale issues and pull requests after a period of inactivity.
Why
As the project grows and attracts community contributions, stale issues and PRs accumulate. Automated management keeps the issue tracker healthy and signals to contributors that the project is actively maintained.
Acceptance Criteria
.github/workflows/stale.ymlusingactions/stalepriority: highandhelp wantedlabelsstalelabel (gray color) for the workflow to useExample