diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..064a9abde8 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,41 @@ +name: Stale Issues and PRs + +on: + schedule: + # Run daily at 2 AM UTC + - cron: '0 2 * * *' + workflow_dispatch: # Allow manual trigger + +permissions: + issues: write + pull-requests: write + +jobs: + stale-bugs: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f + with: + days-before-issue-stale: 30 + days-before-issue-close: 7 + days-before-pr-stale: -1 + days-before-pr-close: -1 + remove-stale-when-updated: true + only-issue-types: 'bug' + stale-issue-label: 'stale' + close-issue-label: 'stale' + operations-per-run: 500 + + stale-prs: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f + with: + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 30 + days-before-pr-close: 7 + remove-stale-when-updated: true + stale-pr-label: 'stale' + close-pr-label: 'stale' + operations-per-run: 500