Skip to content

Commit 7f4c780

Browse files
Merge branch 'jertel:master' into master
2 parents c433352 + 40e830f commit 7f4c780

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/lock-threads.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '50 1 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
discussions: write
12+
13+
concurrency:
14+
group: lock-threads
15+
16+
jobs:
17+
close-threads:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
issues: write
21+
pull-requests: write
22+
steps:
23+
- uses: actions/stale@v5
24+
with:
25+
days-before-issue-stale: 180
26+
days-before-issue-close: 365
27+
stale-issue-message: "This issue is stale because it has been open for 6 months with no activity. Stale issues convey that the issue, while important to someone, is not critical enough for the author, or other community members to work on, sponsor, or otherwise shepherd the issue through to a resolution."
28+
close-issue-message: "This issue was closed because it has been inactive for over a year since being marked as stale. It will be automatically locked after an additional 30 days, after which no further commenting will be available."
29+
days-before-pr-stale: 30
30+
days-before-pr-close: 30
31+
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity. Stale PRs convey that the author no longer has time, capability, or interest in completing the required checklist items. The longer a PR remains stale the more out of date with the main branch it becomes."
32+
close-pr-message: "This PR was closed because it has been inactive for 30 days since being marked as stale. It will be automatically locked after an additional 30 days. If there is still a commitment to finishing this PR please re-open it, or request that a project maintainer re-open it before it becomes locked."
33+
exempt-assignees: jertel
34+
35+
lock-threads:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: jertel/lock-threads@main
39+
with:
40+
include-discussion-currently-open: true
41+
discussion-inactive-days: 90
42+
issue-inactive-days: 30
43+
pr-inactive-days: 30

0 commit comments

Comments
 (0)