Skip to content

Commit 3ef6942

Browse files
Add GitHub action to auto-close inactive issues
1 parent d2f7e2c commit 3ef6942

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Close Stale Issues'
2+
3+
on:
4+
schedule:
5+
- cron: '0 10 * * 5' # Scheduled to run every Friday at 12pm CET
6+
7+
jobs:
8+
stale-issue-handler:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Mark and close stale issues
13+
uses: actions/stale@v9
14+
with:
15+
days-before-stale: 180
16+
days-before-close: 0
17+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.'
18+
close-issue-message: 'Closing this issue due to no activity for 6 months.'
19+
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.'
20+
close-pr-message: 'Closing this PR due to no activity for 6 months.'

0 commit comments

Comments
 (0)