diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..90060b4cc --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,31 @@ +name: 'Stale issue handler' +on: + workflow_dispatch: + schedule: + - cron: '0 7 * * *' + +permissions: + actions: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + id: stale + with: + stale-issue-message: 'This Issue will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.' + stale-pr-message: 'This PR will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.' + operations-per-run: 200 + days-before-stale: 300 + days-before-close: 30 + stale-issue-label: 'stale' + stale-pr-label: 'stale' + close-issue-label: 'closed' + close-pr-label: 'closed' + exempt-issue-labels: 'bug,enhancement,documentation,waiting,keep' + exempt-pr-labels: 'waiting,keep' + exempt-all-milestones: true + exempt-all-assignees: true \ No newline at end of file