Skip to content

Commit a79f6ae

Browse files
authored
feat: add lock-threads workflow (#190)
1 parent 46e92b6 commit a79f6ae

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lock-threads.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lock Threads
2+
3+
# **What it does**: Automatically locks inactive issues and pull requests.
4+
# **Why we have it**: Helps maintainers manage repository activity and reduce clutter.
5+
6+
on:
7+
workflow_call:
8+
9+
jobs:
10+
lock-threads:
11+
name: Lock Threads
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- name: Lock inactive issues and prs
18+
uses: jsumners/lock-threads@e460dfeb36e731f3aeb214be6b0c9a9d9a67eda6 # v3.0.0
19+
with:
20+
issue-inactive-days: '90'
21+
pr-inactive-days: '90'
22+
exclude-any-issue-labels: 'discussion,good first issue,help wanted'
23+
issue-comment: >
24+
This issue has been automatically locked since there
25+
has not been any recent activity after it was closed.
26+
Please open a new issue for related bugs.
27+
pr-comment: >
28+
This pull request has been automatically locked since there
29+
has not been any recent activity after it was closed.
30+
Please open a new issue for related bugs.

0 commit comments

Comments
 (0)