Stalebot #22
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: Stalebot | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| # Everyday 6am EST | |
| - cron: "0 10 * * *" | |
| env: | |
| DAYS_BEFORE_ISSUE_STALE: 90 | |
| DAYS_BEFORE_ISSUE_CLOSE: 30 | |
| DAYS_BEFORE_PR_STALE: 30 | |
| DAYS_BEFORE_PR_CLOSE: 5 | |
| jobs: | |
| close-stale-issues: | |
| name: Close Stale Issues | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }} | |
| days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} | |
| stale-issue-message: > | |
| This issue has been marked as stale because of no activity in the last ${{ env.DAYS_BEFORE_ISSUE_STALE }} days. It will be closed in the next ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days unless it is tagged "no stalebot" or other activity occurs. | |
| close-issue-message: > | |
| This issue has been closed due to no activity in the last ${{ env.DAYS_BEFORE_ISSUE_STALE }} days. | |
| stale-issue-label: 'stale' # https://github.com/kgateway-dev/kgateway/labels/stale | |
| exempt-issue-labels: 'no stalebot' # https://github.com/kgateway-dev/kgateway/labels/no%20stalebot | |
| enable-statistics: true | |
| operations-per-run: 1000 | |
| ascending: true # asc means oldest first | |
| close-stale-prs: | |
| name: Close Stale PRs | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }} | |
| days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }} | |
| stale-pr-message: > | |
| This pull request has been marked as stale because of no activity in the last ${{ env.DAYS_BEFORE_PR_STALE }} days. It will be closed in the next ${{ env.DAYS_BEFORE_PR_CLOSE }} days unless it is tagged "no stalebot" or other activity occurs. | |
| close-pr-message: > | |
| This pull request has been closed due to no activity in the last ${{ env.DAYS_BEFORE_PR_STALE }} days. | |
| stale-pr-label: 'stale' # https://github.com/kgateway-dev/kgateway/labels/stale | |
| exempt-pr-labels: 'no stalebot' # https://github.com/kgateway-dev/kgateway/labels/no%20stalebot | |
| enable-statistics: true | |
| operations-per-run: 1000 | |
| ascending: true # asc means oldest first |