Skip to content

Commit c1e9c7b

Browse files
automate locking closed threads (#24525)
With comments happening on closed issues/prs this locks issues that have been closed for >45days. This allows for comments on recently closed issues/prs to still happen. --------- Co-authored-by: silverwind <[email protected]>
1 parent 8f17237 commit c1e9c7b

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

.github/lock.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/lock.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run once a day
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: lock
14+
15+
jobs:
16+
action:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: dessant/lock-threads@v4
20+
with:
21+
issue-inactive-days: 45

0 commit comments

Comments
 (0)