diff --git a/.github/actions/stale/stale.yml b/.github/actions/stale/stale.yml new file mode 100644 index 0000000000..3967c03c54 --- /dev/null +++ b/.github/actions/stale/stale.yml @@ -0,0 +1,31 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + + debug-only: true + operations-per-run: 30 + + days-before-stale: 30 + days-before-close: 5 + + days-before-issue-stale: 180 + days-before-issue-close: 14 + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + exempt-issue-labels: 'needs_triage' + stale-issue-label: 'no_issue_activity' + + days-before-pr-stale: 90 + days-before-pr-close: 14 + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' + exempt-pr-labels: 'needs_triage' + stale-pr-label: 'no_pr_activity'