Skip to content

Commit c3b6373

Browse files
authored
chore: introduce a new action that closes stale issues and PRs (#588)
1 parent 587c32b commit c3b6373

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/stale.yml

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

0 commit comments

Comments
 (0)