File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Close inactive issues
2
+ on :
3
+ schedule :
4
+ - cron : " 30 1 * * *"
5
+
6
+ jobs :
7
+ close-issues :
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ issues : write
11
+ pull-requests : write
12
+ steps :
13
+ - uses : actions/stale@v5
14
+ with :
15
+ days-before-issue-stale : 90
16
+ days-before-issue-close : 14
17
+ stale-issue-label : " stale"
18
+ stale-issue-message : " This issue is stale because it has been open for 90 days with no activity."
19
+ close-issue-message : " This issue was closed because it has been inactive for 14 days since being marked as stale."
20
+ days-before-pr-stale : -1
21
+ days-before-pr-close : -1
22
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
23
+
24
+ inactivity-lock :
25
+ name : Lock issues and PRs
26
+ runs-on : ubuntu-latest
27
+ permissions :
28
+ issues : write
29
+ pull-requests : write
30
+ steps :
31
+ - name : 🔒 Lock closed issues and PRs
32
+ uses : klaasnicolaas/action-inactivity-lock@v1
33
+ id : lock
34
+ with :
35
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
36
+ rate-limit-buffer : 200
37
+ days-inactive-issues : 30
38
+ days-inactive-prs : -1
39
+ lock-reason-issues : " This issue was locked because it has been inactive for 30 days since being closed."
40
+ lock-reason-prs : " This PR was locked because it has been inactive for 30 days since being closed."
41
+ - name : 🔍 Display locked issues and PRs
42
+ run : |
43
+ echo "Locked issues: $(echo '${{ steps.lock.outputs.locked-issues }}' | jq)"
44
+ echo "Locked PRs: $(echo '${{ steps.lock.outputs.locked-prs }}' | jq)"
You can’t perform that action at this time.
0 commit comments