From 56eceaaba0d1313111e8526509de51cda09a529c Mon Sep 17 00:00:00 2001 From: Jinbo Wang Date: Thu, 9 Feb 2023 20:41:55 +0800 Subject: [PATCH 1/3] Enable no-response bot to auto close inactive issues Signed-off-by: Jinbo Wang --- .github/workflows/no-response.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/no-response.yml diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000..168d64fd0 --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,24 @@ +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: + # every morning at 00:00 am + - cron: '0 0 * * *' + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + token: ${{ github.token }} + daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response + responseRequiredLabel: "need info" # Label indicating that a response from the original author is required + closeComment: > + 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. From 74a8b80acbc25840932624a2ef0a58ab911fe2d9 Mon Sep 17 00:00:00 2001 From: Jinbo Wang Date: Thu, 9 Feb 2023 21:05:52 +0800 Subject: [PATCH 2/3] Pin to SHA1 & remove irrelevant comment Signed-off-by: Jinbo Wang --- .github/workflows/no-response.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml index 168d64fd0..1daba0079 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/no-response.yml @@ -2,7 +2,6 @@ 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: @@ -15,7 +14,7 @@ jobs: noResponse: runs-on: ubuntu-latest steps: - - uses: lee-dohm/no-response@v0.5.0 + - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb #v0.5.0 with: token: ${{ github.token }} daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response From 829e528e08ba5b4008d125492b358197601c6097 Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Tue, 23 Jan 2024 15:43:17 -0500 Subject: [PATCH 3/3] Close issues marked "need info" with no response after 30 days. Signed-off-by: Roland Grunberg --- .github/workflows/no-response.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml index 1daba0079..2b19f6c74 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/no-response.yml @@ -7,8 +7,7 @@ on: issue_comment: types: [created] schedule: - # every morning at 00:00 am - - cron: '0 0 * * *' + - cron: '0 10 * * *' jobs: noResponse: @@ -17,7 +16,7 @@ jobs: - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb #v0.5.0 with: token: ${{ github.token }} - daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response + daysUntilClose: 30 # Number of days of inactivity before an Issue is closed for lack of response responseRequiredLabel: "need info" # Label indicating that a response from the original author is required closeComment: > 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.