Skip to content

Commit b06b0cf

Browse files
authored
Create stale.yml
1 parent c54bb4b commit b06b0cf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: '0 7 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v4
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.'
25+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.'
26+
stale-issue-label: 'stale'
27+
stale-pr-label: 'stale'
28+
close-issue-label: 'inactivity-closed'
29+
close-pr-label: 'inactivity-closed'
30+
labels-to-add-when-unstale: 'valid'
31+
exempt-issue-labels: 'valid,good first issue'
32+
exempt-pr-labels: 'valid,good first issue'
33+
days-before-stale: 30
34+
days-before-close: 5

0 commit comments

Comments
 (0)