Skip to content

Commit f5fc0f4

Browse files
authored
add stale stuff handling via workflow
1 parent 414a154 commit f5fc0f4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '38 17 * * *'
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
jobs:
17+
stale:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/stale@v8
21+
with:
22+
# issue setup
23+
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.'
24+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
25+
exempt-issue-labels: 'accepted,enhancement,help wanted'
26+
# pr setup
27+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment'
28+
exempt-pr-labels: 'help wanted,WIP'
29+
days-before-pr-close: -1 # never close stale PRs
30+
# deadlines config
31+
days-before-stale: 30
32+
days-before-close: 5

0 commit comments

Comments
 (0)