Skip to content

Commit 83a73a9

Browse files
authored
chore: add stale GitHub action
1 parent b2716f7 commit 83a73a9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
on:
8+
schedule:
9+
- cron: "*/10 5 * * *"
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@v5
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
days-before-stale: 365
21+
stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
22+
stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
23+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
24+
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
25+
exempt-issue-labels: 'Help Wanted, Good first issue, Never gets stale'
26+
exempt-pr-labels: 'Help Wanted, Never gets stale'

0 commit comments

Comments
 (0)