Close stale issues #209
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" | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
default: | |
timeout-minutes: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days' | |
stale-issue-label: 'stale' | |
exempt-issue-labels: 'bug,enhancement,documentation,help wanted,next release,next major release' | |
days-before-stale: 21 | |
days-before-close: 7 | |
invalid: | |
timeout-minutes: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'This issue is stale because it has been labeled as invalid.' | |
stale-issue-label: 'stale' | |
only-labels: 'invalid' | |
days-before-stale: 1 | |
days-before-close: 2 | |
duplicate: | |
timeout-minutes: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'This issue is stale because it has been labeled as duplicate.' | |
stale-issue-label: 'stale' | |
only-labels: 'duplicate' | |
days-before-stale: 1 | |
days-before-close: 2 | |
wontfix: | |
timeout-minutes: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'This issue is stale because it has been labeled as wontfix.' | |
stale-issue-label: 'stale' | |
only-labels: 'wontfix' | |
days-before-stale: 1 | |
days-before-close: 2 |