Skip to content

Commit b9d2491

Browse files
committed
Create lock-closed-issues-discussions-and-prs.yml
1 parent 3535dbb commit b9d2491

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lock Closed Issues, PRs, and Discussions
2+
3+
on:
4+
schedule:
5+
- cron: '0 1 * * *'
6+
workflow_dispatch:
7+
inputs:
8+
reason:
9+
description: 'Reason for manual trigger'
10+
required: false
11+
default: 'Manual run'
12+
13+
jobs:
14+
lock-threads:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Lock threads after 30 days of inactivity
18+
uses: dessant/lock-threads@v5
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
issue-inactive-days: '30'
22+
pr-inactive-days: '30'
23+
discussion-inactive-days: '30'
24+
issue-lock-reason: 'resolved'
25+
pr-lock-reason: 'resolved'
26+
log-output: true
27+
issue-comment: >
28+
This issue has been automatically locked.
29+
If you have a related issue, please open a new one with a link to this issue.
30+
pr-comment: >
31+
This pull request has been automatically locked.
32+
If you have a related pull request, please open a new one with a link to this PR.
33+
discussion-comment: >
34+
This discussion has been automatically locked.
35+
If you have a related topic, please open a new discussion with a link to this one.

0 commit comments

Comments
 (0)