Skip to content

Commit 84d9e65

Browse files
committed
housekeeping: Automatically lock old PRs and issues
1 parent 983d913 commit 84d9e65

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/lock.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
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@v3
20+
with:
21+
github-token: ${{ github.token }}
22+
issue-inactive-days: '14'
23+
pr-inactive-days: '14'
24+
issue-comment: >
25+
This issue has been automatically locked since there
26+
has not been any recent activity after it was closed.
27+
Please open a new issue for related bugs.
28+
pr-comment: >
29+
This pull request has been automatically locked since there
30+
has not been any recent activity after it was closed.
31+
Please open a new issue for related bugs.

0 commit comments

Comments
 (0)