1name: Close stale PRs
2
3on:
4  schedule:
5    - cron: "0 0 * * *"
6
7permissions:
8  contents: read
9
10jobs:
11  stale:
12    if: github.repository_owner == 'php'
13    runs-on: ubuntu-latest
14    permissions:
15      issues: write
16      pull-requests: write
17    steps:
18      - uses: actions/stale@v6
19        with:
20          days-before-close: 7
21          days-before-stale: 60
22          exempt-pr-labels: RFC,Waiting on Review
23          # Hack to skip issues, unfortunately there's no option to disable issues
24          only-issue-labels: inexistent-label
25          only-pr-labels: Waiting on Author
26          stale-pr-message: There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken.
27