Skip to content

Commit f97fae4

Browse files
authored
ci: add stale workflow (#47)
1 parent a3c8b60 commit f97fae4

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.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)