Skip to content

Commit e9dd7a4

Browse files
committed
ci: add "stale" workflow
1 parent f5a3783 commit e9dd7a4

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: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v3
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
stale-issue-message: 'This issue is being marked as "stale" because it has been open 30 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.'
15+
stale-issue-label: stale
16+
exempt-issue-labels: pinned
17+
stale-pr-message: 'This PR is being marked as "stale" because it has been open 30 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.'
18+
stale-pr-label: stale
19+
exempt-pr-labels: pinned
20+
days-before-stale: 30
21+
days-before-close: 5

0 commit comments

Comments
 (0)