Skip to content

Commit dc92522

Browse files
authored
ci: add stale workflow
1 parent eea9dab commit dc92522

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Handle 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 20 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.'
15+
stale-issue-label: 'status: stale'
16+
exempt-issue-labels: 'status: pinned'
17+
stale-pr-message: 'This PR is being marked as "stale" because it has been open 20 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.'
18+
stale-pr-label: 'status: stale'
19+
exempt-pr-labels: 'status: pinned'
20+
days-before-stale: 20
21+
days-before-close: 5

0 commit comments

Comments
 (0)