Skip to content

Commit 92a758a

Browse files
committed
Lock older closed issues
1 parent 7d73deb commit 92a758a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lock.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Lock Closed Issues'
2+
3+
on:
4+
schedule:
5+
- cron: '30 5 * * *'
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
concurrency:
14+
group: lock
15+
16+
jobs:
17+
action:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: dessant/lock-threads@v3
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
issue-comment: 'This issue has been automatically locked since there has not been any recent activity after it was close. Please open a new issue for related topics.'
24+
issue-inactive-days: 60
25+
add-issue-labels: 'archived'
26+
process-only: 'issues'

0 commit comments

Comments
 (0)