diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..cfd3c02e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,17 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '15 2 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GH_PAT }} + stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove the stale label or comment or this will be closed in 7 days.' + stale-issue-label: 'stale' + exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,,[bug]' + days-before-stale: 21 + days-before-close: 7