github.com/rudderlabs/rudder-go-kit@v0.30.0/.github/workflows/stale-pr.yaml (about) 1 name: Stale PR 2 3 on: 4 schedule: 5 - cron: '42 1 * * *' 6 7 jobs: 8 prs: 9 name: cleanup 10 runs-on: ubuntu-latest 11 12 permissions: 13 pull-requests: write 14 15 steps: 16 - uses: actions/stale@v5 17 with: 18 repo-token: ${{ secrets.GITHUB_TOKEN }} 19 operations-per-run: 200 20 stale-pr-message: 'This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 5 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.' 21 days-before-pr-stale: 20 22 days-before-pr-close: 7 23 stale-pr-label: 'Stale' 24 25 branches: 26 name: Cleanup old branches 27 runs-on: ubuntu-latest 28 steps: 29 - name: Checkout repository 30 uses: actions/checkout@v2 31 - name: Run delete-old-branches-action 32 uses: beatlabs/delete-old-branches-action@v0.0.9 33 with: 34 repo_token: ${{ github.token }} 35 date: '2 months ago' 36 dry_run: false 37 delete_tags: false 38 extra_protected_branch_regex: ^(main|master|release.*|rudder-saas)$ 39 exclude_open_pr_branches: true 40