Skip to content

Commit df41adb

Browse files
authored
Automatically close stale issue and PRs (#653)
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. I've chosen the same configuration as in RaspberryPiFoundation/editor-ui#1289
1 parent 28ae615 commit df41adb

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '0 * * * *'
5+
workflow_dispatch:
6+
7+
permissions:
8+
actions: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v10
17+
with:
18+
operations-per-run: 50
19+
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.'
20+
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.'
21+
close-issue-message: 'This issue was closed because it has been open for more than 90 days with no activity.'
22+
close-pr-message: 'This PR was closed because it has been open for more than 30 days with no activity.'
23+
days-before-issue-stale: 90
24+
days-before-pr-stale: 30
25+
days-before-issue-close: 7
26+
days-before-pr-close: 7

0 commit comments

Comments
 (0)