Skip to content

Commit 3ced331

Browse files
committed
Automatically close stale issue and PRs
We have a backlog of old issues and PRs which make it harder to report on outstanding PRs and issues. By using this script, we will remove the backlog of old PRs and issues and keep on top them.
1 parent 829bb3e commit 3ced331

File tree

1 file changed

+19
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)