Skip to content

Commit 72c4672

Browse files
committed
ci: lock closed issues after some time
Commenting on closed issues usually is not spotted by contributors or maintainers. Meaning regressions will be overlooked and not fixed, so instead force people to open a new issue. Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent da2c865 commit 72c4672

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: MIT
3+
#
4+
# Commenting on closed issues usually is not spotted by contributors or maintainers.
5+
# Meaning regressions will be overlooked and not fixed, so instead force people to open a new issue.
6+
7+
name: "Lock closed issues"
8+
9+
on:
10+
schedule:
11+
- cron: "0 3 * * *" # every day at 03:00 UTC
12+
workflow_dispatch:
13+
concurrency:
14+
group: lock-threads
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
jobs:
19+
lock:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
issue-inactive-days: 30
27+
issue-comment: >
28+
This issue has been automatically locked because it has been closed for 30 days.
29+
Please open a new issue if you have a similar problem.

0 commit comments

Comments
 (0)