From 084a47625dda5c51ce66f5abbf4b549c5eab7a11 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Wed, 20 Mar 2024 13:01:23 -0500 Subject: [PATCH 1/2] Update and rename `no-response.yml` to `close-stale-issues.yml` --- .github/workflows/close-stale-issues.yml | 36 ++++++++++++++++++++++++ .github/workflows/no-response.yml | 27 ------------------ 2 files changed, 36 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/close-stale-issues.yml delete mode 100644 .github/workflows/no-response.yml diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml new file mode 100644 index 0000000000..640e1016b6 --- /dev/null +++ b/.github/workflows/close-stale-issues.yml @@ -0,0 +1,36 @@ +name: 'Close stale issues' + +# **What it does**: Closes issues where the original author doesn't respond to a request for information. +# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded. + +on: + schedule: + # Schedule for every day at 1:30am UTC + - cron: '30 1 * * *' + +permissions: + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 7 + days-before-close: 7 + stale-issue-message: > + It has been 7 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 7 days, but if you have more information to add then please comment and the issue will stay open. + close-issue-message: > + This issue has been automatically closed because there has been no response + to our request for more information. With only the + information that is currently in the issue, we don't have enough information + to take action. Please reach out if you have or find the answers we need so + that we can investigate further. See [this blog post on bug reports and the + importance of repro steps](https://www.lee-dohm.com/2015/01/04/writing-good-bug-reports/) + for more information about the kind of information that may be helpful. + stale-issue-label: 'stale' + close-issue-reason: 'not_planned' + any-of-labels: 'reporter feedback' + remove-stale-when-updated: true + diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml deleted file mode 100644 index 07372e27dc..0000000000 --- a/.github/workflows/no-response.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: No Response - -# **What it does**: Closes issues where the original author doesn't respond to a request for information. -# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded. -# **Who does it impact**: Everyone that works on docs or docs-internal. - -on: - issue_comment: - types: [created] - schedule: - # Schedule for five minutes after the hour, every hour - - cron: '5 * * * *' - -jobs: - noResponse: - runs-on: ubuntu-latest - steps: - - uses: lee-dohm/no-response@v0.5.0 - with: - token: ${{ github.token }} - daysUntilClose: 3 # Number of days of inactivity before an Issue is closed for lack of response - responseRequiredLabel: "reporter feedback" # Label indicating that a response from the original author is required - closeComment: > - This issue has been automatically closed because there has been no response - to our request for more information in the past 3 days. With only the - information that is currently available, we are unable to take further action on this ticket. Please reach out if you have found or find the answers we need so - that we can investigate further. When the information is ready, you can re-open this ticket to share it with us. \ No newline at end of file From 4f754a1d5b488a4a38891e6d5af37bfc8f465769 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Wed, 20 Mar 2024 13:07:48 -0500 Subject: [PATCH 2/2] Update close-stale-issues.yml --- .github/workflows/close-stale-issues.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 640e1016b6..18273e6b48 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -17,18 +17,16 @@ jobs: steps: - uses: actions/stale@v9 with: - days-before-stale: 7 - days-before-close: 7 + days-before-stale: 3 + days-before-close: 3 stale-issue-message: > - It has been 7 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 7 days, but if you have more information to add then please comment and the issue will stay open. + It has been 3 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 3 days, but if you have more information to add then please comment and the issue will stay open. close-issue-message: > This issue has been automatically closed because there has been no response - to our request for more information. With only the - information that is currently in the issue, we don't have enough information - to take action. Please reach out if you have or find the answers we need so - that we can investigate further. See [this blog post on bug reports and the - importance of repro steps](https://www.lee-dohm.com/2015/01/04/writing-good-bug-reports/) - for more information about the kind of information that may be helpful. + to our request for more information in the past 3 days. With only the + information that is currently available, we are unable to take further action on this ticket. + Please reach out if you have found or find the answer we need so that we + can investigate further. When the information is ready, you can re-open this ticket to share it with us. stale-issue-label: 'stale' close-issue-reason: 'not_planned' any-of-labels: 'reporter feedback'