Skip to content

Commit 75393fd

Browse files
authored
Create auto-close-old-issues-prs.yml
Close old issues and PRs older than 2 years
1 parent 175ea7b commit 75393fd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Close old issues and PRs older than 2 years
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
close-old:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v10
16+
with:
17+
start-date: created_at<=-730 days
18+
days-before-issue-stale: -1
19+
days-before-issue-close: 0
20+
close-issue-message: |
21+
🔒 This issue has been **automatically closed** because it has been open for more than 2 years with no activity.
22+
If this is still relevant, you may **reopen it or create a new one**.
23+
close-issue-reason: not_planned
24+
25+
days-before-pr-stale: -1
26+
days-before-pr-close: 0
27+
close-pr-message: |
28+
🔒 This pull request has been **automatically closed** because it has been open for more than 2 years with no activity.
29+
If you still want to proceed, you may **reopen this PR or open a new one**.
30+
31+
exempt-issue-labels: pinned,security,long-term
32+
exempt-pr-labels: pinned,security,wip
33+

0 commit comments

Comments
 (0)