From 3fd291396e4625f02a996d54e4a1f02dea8cabf4 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 5 Apr 2022 19:42:35 -0500 Subject: [PATCH] [ci] use lee-dohm/no-response to close stale issues (fixes #5060) (#5120) * [ci] use lee-dohm/no-response to close stale issues (fixes #5060) * only run once a day --- .github/no-response.yml | 11 ----------- .github/workflows/no-response.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 .github/no-response.yml create mode 100644 .github/workflows/no-response.yml diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index dbfcf6987..000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 30 -# Label requiring a response -responseRequiredLabel: awaiting response -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because it has been awaiting a response for too long. - When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. - If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM! diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000..93d37bae4 --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,23 @@ +name: No Response Bot + +on: + issue_comment: + types: [created] + schedule: + # "every day at 04:00 UTC" + - cron: '0 4 * * *' + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + closeComment: > + This issue has been automatically closed because it has been awaiting a response for too long. + When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. + If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. + Thank you for taking the time to improve LightGBM! + daysUntilClose: 30 + responseRequiredLabel: awaiting response + token: ${{ secrets.WORKFLOW }}