Lock closed issues

[why]
Sometimes people comment on (long) closed issues because they have
similar problems. But that is often just a me-too, and all the details
to reproduce the issue are missing.

[how]
Lock old closed issues and add some comment that a new issue should be
opened instead.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-03-12 21:57:11 +01:00
parent dcaff0f4c6
commit 1fa53bc9cc

28
.github/workflows/lock.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: 'Lock Threads'
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
permissions:
issues: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
issue-inactive-days: '182'
issue-comment: >
This issue has been automatically locked since there
has not been any recent activity (i.e. last half year) after it was closed.
It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a new
issue, complete the issue template with all the details
necessary to reproduce, and mention this issue as reference.
process-only: 'issues'