Skip to content

Commit 5a6cde5

Browse files
authored
chore: add action to detect and close stale issues
Using this GH action will prevent issues and pull requests from sitting unattended for more than 30 days. Ref: https://github.com/actions/stale
1 parent 72a87df commit 5a6cde5

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: "0 0 * * *"
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 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
17+
days-before-stale: 30
18+
days-before-close: 5
19+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
20+
stale-issue-label: 'no-issue-activity'
21+
stale-pr-label: 'no-pr-activity'

0 commit comments

Comments
 (0)