1name: Close stale feature requests
2
3on:
4  schedule:
5    - cron: "0 0 * * *"
6
7permissions:
8  contents: read
9
10jobs:
11  stale:
12    if: github.repository == 'php/php-src'
13    runs-on: ubuntu-latest
14    permissions:
15      issues: write
16      pull-requests: write
17    steps:
18      - uses: actions/stale@v9
19        with:
20          days-before-close: 14
21          days-before-stale: 90
22          exempt-all-assignees: true
23          only-issue-labels: "Status: Requires RFC,Feature"
24          # Hack to skip PRs, unfortunately there's no option to disable PRs
25          only-pr-labels: inexistent-label
26          stale-issue-message: >-
27            There has not been any recent activity in this feature request. It will automatically be closed in 14 days
28            if no further action is taken. Please see https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea
29            to understand why we auto-close stale feature requests.
30