| 1 |
name: Close stale PRs |
| 2 |
on: |
| 3 |
schedule: |
| 4 |
- cron: "30 1 * * *" |
| 5 |
pull_request: |
| 6 |
paths: [.github/workflows/stale.yml] |
| 7 |
branches: [main] |
| 8 |
|
| 9 |
jobs: |
| 10 |
stale: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
permissions: |
| 13 |
pull-requests: write |
| 14 |
steps: |
| 15 |
- uses: actions/stale@v10 |
| 16 |
with: |
| 17 |
stale-pr-message: > |
| 18 |
This PR has been automatically marked as stale because it has not had |
| 19 |
recent activity. It will be closed if no further activity occurs. Thank you |
| 20 |
for your contributions. |
| 21 |
days-before-pr-stale: 60 |
| 22 |
days-before-pr-close: -1 |
| 23 |
days-before-issue-stale: -1 |
| 24 |
days-before-issue-close: -1 |
| 25 |
exempt-pr-labels: ops-backlog,status/needs_team_discussion,status/on_hold |
| 26 |
stale-pr-label: status/stale |
| 27 |
|
| 28 |
|
| 29 |
debug-only: ${{ github.event_name == 'pull_request' }} |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
operations-per-run: ${{ github.event_name == 'pull_request' && 100 || 30 }} |