Close stale issues and PRs #1877
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 stale issues and PRs" | |
| on: | |
| schedule: | |
| - cron: "20 0 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| debug-only: | |
| description: 'In debug mod' | |
| required: false | |
| default: 'false' | |
| permissions: | |
| contents: read | |
| jobs: | |
| stale: | |
| permissions: | |
| issues: write # for actions/stale to close stale issues | |
| pull-requests: write # for actions/stale to close stale PRs | |
| actions: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| stale-issue-message: 'Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.' | |
| stale-pr-message: "PRs go stale after 14d of inactivity. Stale PRs rot after an additional 3d of inactivity and eventually close." | |
| stale-issue-label: 'lifecycle/stale' | |
| exempt-issue-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned' | |
| stale-pr-label: 'lifecycle/stale' | |
| exempt-pr-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned' | |
| days-before-stale: 14 | |
| days-before-close: 3 | |
| debug-only: ${{ github.event.inputs.debug-only }} | |
| exempt-all-pr-milestones: true | |
| exempt-all-pr-assignees: true | |
| operations-per-run: 200 |