2021-12-06 14:58:02 +03:00
|
|
|
# Automatically close issues or pull requests that have a label, after a custom delay, if no one replies.
|
2020-09-02 10:57:55 +03:00
|
|
|
# https://github.com/tiangolo/issue-manager
|
|
|
|
name: Issue Manager
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-12-06 14:58:02 +03:00
|
|
|
- cron: "12 0 * * *"
|
2021-12-10 22:30:41 +03:00
|
|
|
issue_comment:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- labeled
|
2020-09-03 10:36:06 +03:00
|
|
|
workflow_dispatch:
|
2020-09-02 10:57:55 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
issue-manager:
|
2021-12-06 15:01:31 +03:00
|
|
|
# Disables this workflow from running in a repository that is not part of the indicated organization/user
|
|
|
|
if: github.repository_owner == 'cookiecutter'
|
|
|
|
|
2020-09-02 10:57:55 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-20 01:06:56 +03:00
|
|
|
- uses: tiangolo/issue-manager@0.4.0
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
config: >
|
|
|
|
{
|
|
|
|
"answered": {
|
2023-11-29 19:10:28 +03:00
|
|
|
"delay": 864000,
|
2021-12-06 14:58:02 +03:00
|
|
|
"message": "Assuming the question was answered, this will be automatically closed now."
|
|
|
|
},
|
|
|
|
"solved": {
|
2023-11-29 19:10:28 +03:00
|
|
|
"delay": 864000,
|
2021-12-06 14:58:02 +03:00
|
|
|
"message": "Assuming the original issue was solved, it will be automatically closed now."
|
2021-11-20 01:06:56 +03:00
|
|
|
},
|
|
|
|
"waiting": {
|
2023-11-29 19:10:28 +03:00
|
|
|
"delay": 864000,
|
2021-12-06 14:58:02 +03:00
|
|
|
"message": "Automatically closing after waiting for additional info. To re-open, please provide the additional information requested."
|
2021-11-20 01:06:56 +03:00
|
|
|
}
|
2020-09-02 10:57:55 +03:00
|
|
|
}
|