Close stale issues and pull requests #30
This file contains 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
# .github/workflows/stale.yml | |
name: Close stale issues and pull requests | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
days-before-stale: 60 | |
days-before-close: 7 | |
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.' | |
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.' | |
close-issue-message: 'This issue has been automatically closed due to inactivity. If this issue is still relevant, please reopen it.' | |
close-pr-message: 'This PR has been automatically closed due to inactivity. If this PR is still relevant, please reopen it.' | |
stale-issue-label: 'stale' | |
exempt-issue-labels: 'pinned,security,update' | |
stale-pr-label: 'stale' | |
exempt-pr-labels: 'pinned,security,update' |