[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
This commit is contained in:
James Lamb 2022-04-05 19:42:35 -05:00 коммит произвёл GitHub
Родитель 9e2586e028
Коммит 3fd291396e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 23 добавлений и 11 удалений

11
.github/no-response.yml поставляемый
Просмотреть файл

@ -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!

23
.github/workflows/no-response.yml поставляемый Normal file
Просмотреть файл

@ -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 }}