|
| 1 | +name: Close inactive issues |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + - cron: "30 1 * * *" |
| 5 | +jobs: |
| 6 | + close-issues: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + permissions: |
| 9 | + issues: write |
| 10 | + pull-requests: write |
| 11 | + steps: |
| 12 | + - name: Awaiting response issues |
| 13 | + uses: actions/stale@v9 |
| 14 | + with: |
| 15 | + days-before-issue-stale: 14 |
| 16 | + days-before-issue-close: 14 |
| 17 | + stale-issue-label: "stale" |
| 18 | + # reason for closed the issue default value is not_planned |
| 19 | + close-issue-reason: completed |
| 20 | + only-labels: "stat:awaiting response from contributor" |
| 21 | + stale-issue-message: > |
| 22 | + This issue is stale because it has been open for 14 days with no activity. |
| 23 | + It will be closed if no further activity occurs. Thank you. |
| 24 | + # List of labels to remove when issues/PRs unstale. |
| 25 | + labels-to-remove-when-unstale: "stat:awaiting response from contributor" |
| 26 | + close-issue-message: > |
| 27 | + This issue was closed because it has been inactive for 28 days. |
| 28 | + Please reopen if you'd like to work on this further. |
| 29 | + days-before-pr-stale: 14 |
| 30 | + days-before-pr-close: 14 |
| 31 | + stale-pr-message: "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you." |
| 32 | + close-pr-message: "This PR was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further." |
| 33 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 34 | + - name: Contribution issues |
| 35 | + uses: actions/stale@v9 |
| 36 | + with: |
| 37 | + days-before-issue-stale: 180 |
| 38 | + days-before-issue-close: 365 |
| 39 | + stale-issue-label: "stale" |
| 40 | + # reason for closed the issue default value is not_planned |
| 41 | + close-issue-reason: not_planned |
| 42 | + any-of-labels: "stat:contributions welcome,good first issue" |
| 43 | + # List of labels to remove when issues/PRs unstale. |
| 44 | + labels-to-remove-when-unstale: "stat:contributions welcome,good first issue" |
| 45 | + stale-issue-message: > |
| 46 | + This issue is stale because it has been open for 180 days with no activity. |
| 47 | + It will be closed if no further activity occurs. Thank you. |
| 48 | + close-issue-message: > |
| 49 | + This issue was closed because it has been inactive for more than 1 year. |
| 50 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments