Skip to content

Commit 42b0819

Browse files
authored
ci: Add automatic cleaning on stale issues and PRs (#52)
1 parent 4cffb88 commit 42b0819

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v1
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
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+
close-issue-message: 'This issue has been closed due to inactivity.'
21+
close-pr-message: 'This PR has been closed due to inactivity.'

0 commit comments

Comments
 (0)