Skip to content

Commit 304b8e9

Browse files
committed
Add a stale action for maintaining inactive issues/PRs
1 parent f47168b commit 304b8e9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/stale.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
stale-issue-message: 'This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days.'
13+
stale-pr-message: 'This PR is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days.'
14+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
15+
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
16+
days-before-issue-stale: 30
17+
days-before-pr-stale: 30
18+
days-before-issue-close: 5
19+
days-before-pr-close: 5
20+
stale-issue-label: 'incomplete'
21+
stale-pr-label: 'incomplete'
22+
exempt-issue-labels: 'awaiting-approval,work-in-progress'
23+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
24+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)