Cleanup stale PRs, Branches, and Issues #418
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: "Cleanup stale PRs, Branches, and Issues" | |
| on: | |
| schedule: | |
| - cron: "30 1 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| issues: write | |
| env: | |
| DO_NOT_TRACK: "1" | |
| jobs: | |
| stale-prs-and-issues: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| stale-issue-message: "This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days." | |
| close-issue-message: "This issue was closed because it has been inactive for 30 days after being marked stale." | |
| days-before-issue-stale: 180 | |
| days-before-issue-close: 30 | |
| stale-pr-message: "This PR is stale because it has been open 25 days with no activity. Remove stale label or comment or this will be closed in 5 days." | |
| close-pr-message: "This PR was closed because it has been inactive for 5 days after being marked stale." | |
| days-before-pr-stale: 25 | |
| days-before-pr-close: 5 | |
| operations-per-run: 500 | |
| stale-branch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: crs-k/stale-branches@v8.2.2 | |
| with: | |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
| days-before-stale: 60 | |
| days-before-delete: 180 | |
| comment-updates: false | |
| max-issues: 500 #we are not using the issue functionality, but this is also used to regulate max number of branches deleted per run. | |
| tag-committer: false | |
| stale-branch-label: "stale branch" | |
| compare-branches: "off" | |
| branches-filter-regex: "^((?!prototype))" | |
| rate-limit: true | |
| pr-check: true | |
| dry-run: false | |
| ignore-issue-interaction: true | |
| include-protected-branches: false | |
| include-ruleset-branches: false | |
| ignore-commit-messages: "" | |
| ignore-committers: "" |