Skip to content

Commit 1781643

Browse files
authored
ci(workflows): add stale issues and PRs workflow (#91)
1 parent 7e92d3a commit 1781643

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/stale.yml

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

0 commit comments

Comments
 (0)