Close stale issues and PRs #119
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
name: Close stale issues and PRs | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
jobs: | |
stale: | |
name: Close stale issues and PRs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Close stale issues and PRs | |
uses: actions/stale@v8 | |
with: | |
stale-pr-message: 'This PR is now marked as stale after 30 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label.' | |
close-pr-message: 'Closing this PR because it has been stale for 7 days with no activity.' | |
stale-issue-message: 'This issue is now marked as stale after 90 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label.' | |
close-issue-message: 'Closing this issue because it has been stale for 7 days with no activity.' | |
days-before-issue-stale: 90 | |
days-before-pr-stale: 30 | |
days-before-close: 7 | |
stale-pr-label: stale | |
stale-issue-label: stale | |
exempt-pr-labels: 'no stale' | |
exempt-issue-labels: 'no stale' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
operations-per-run: 300 |