|
1 | 1 | name: No Response |
2 | 2 |
|
3 | 3 | # **What it does**: Closes issues where the original author doesn't respond to a request for information. |
4 | | -# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded. |
5 | | -# **Who does it impact**: Everyone that works on docs or docs-internal. |
| 4 | +# **Why we have it**: To remove the need for maintainers to check back on issues periodically to see if contributors have responded. |
| 5 | +# **Who does it impact**: Everyone that works on this repository. |
6 | 6 |
|
7 | 7 | on: |
8 | | - issue_comment: |
9 | | - types: [created] |
10 | 8 | schedule: |
11 | | - # Schedule for five minutes after the hour, every hour |
| 9 | + # Run once daily at midnight UTC |
12 | 10 | - cron: '0 0 * * *' |
| 11 | + workflow_dispatch: |
| 12 | + |
| 13 | +permissions: |
| 14 | + issues: write |
| 15 | + pull-requests: write |
13 | 16 |
|
14 | 17 | jobs: |
15 | 18 | noResponse: |
16 | 19 | runs-on: ubuntu-latest |
17 | 20 | steps: |
18 | | - - uses: lee-dohm/[email protected] |
| 21 | + - uses: actions/stale@v9 |
19 | 22 | with: |
20 | | - token: ${{ github.token }} |
21 | | - daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response |
22 | | - responseRequiredLabel: "needs more info" # Label indicating that a response from the original author is required |
23 | | - closeComment: > |
| 23 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + # Only process issues with "needs more info" label |
| 25 | + only-labels: 'needs more info' |
| 26 | + # Don't mark as stale, just close directly after days-before-close |
| 27 | + days-before-stale: -1 |
| 28 | + # Close after 14 days of inactivity |
| 29 | + days-before-close: 14 |
| 30 | + # Message when closing |
| 31 | + close-issue-message: > |
24 | 32 | This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
| 33 | + # Don't close if there are recent comments |
| 34 | + remove-issue-stale-when-updated: true |
| 35 | + # Exempt certain labels from being closed |
| 36 | + exempt-issue-labels: 'pinned,security' |
| 37 | + # Only process issues, not PRs |
| 38 | + enable-statistics: true |
0 commit comments