| 1 | # Closes pull requests that stayed "status: needs info" (set by pr-gate.yml) for 14 days. |
| 2 | name: Stale PRs |
| 3 | |
| 4 | on: |
| 5 | schedule: |
| 6 | - cron: "17 4 * * *" |
| 7 | workflow_dispatch: |
| 8 | |
| 9 | permissions: |
| 10 | pull-requests: write |
| 11 | issues: write |
| 12 | |
| 13 | jobs: |
| 14 | stale: |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/stale@v11 |
| 18 | with: |
| 19 | only-pr-labels: "status: needs info" |
| 20 | days-before-issue-stale: -1 |
| 21 | days-before-issue-close: -1 |
| 22 | days-before-pr-stale: 10 |
| 23 | days-before-pr-close: 4 |
| 24 | stale-pr-label: stale |
| 25 | stale-pr-message: "This PR is still missing what the PR gate comment lists. It closes in 4 days unless it is updated." |
| 26 | close-pr-message: "Closed because the PR gate items stayed open for 14 days. Reopen it any time once they are added." |