File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments