Close old issues and PRs older than 2 years #107
This file contains hidden or 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 old issues and PRs older than 2 years | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| close-old: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| days-before-issue-stale: 730 | |
| days-before-issue-close: 0 | |
| close-issue-message: | | |
| 🔒 This issue has been **automatically closed** because it has been open for more than 2 years with no activity. | |
| If this is still relevant, you may **reopen it or create a new one**. | |
| close-issue-reason: not_planned | |
| days-before-pr-stale: 730 | |
| days-before-pr-close: 0 | |
| close-pr-message: | | |
| 🔒 This pull request has been **automatically closed** because it has been open for more than 2 years with no activity. | |
| If you still want to proceed, you may **reopen this PR or open a new one**. | |
| exempt-issue-labels: pinned,security-fix,long-term | |
| exempt-pr-labels: pinned,security-fix,wip |