Skip to content

Commit 4e066c5

Browse files
committed
ci: add an action to automatically close stale issues and PRs
1 parent 6f556e2 commit 4e066c5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '* 4 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
15+
stale-pr-message: 'This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
16+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
17+
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
18+
days-before-issue-stale: 14
19+
days-before-pr-stale: 14
20+
days-before-issue-close: 7
21+
days-before-pr-close: 7

0 commit comments

Comments
 (0)