Skip to content

Commit c97635c

Browse files
authored
adding stale checker
1 parent f69ca42 commit c97635c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/stale.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 and close them
7+
8+
on:
9+
schedule:
10+
- cron: '31 21 * * *'
11+
12+
jobs:
13+
close-issues:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
steps:
19+
- uses: actions/stale@v9
20+
with:
21+
days-before-issue-stale: 182
22+
days-before-issue-close: 60
23+
stale-issue-label: "stale"
24+
stale-issue-message: "This issue is stale because it has been open for 182 days with no activity."
25+
close-issue-message: "This issue was closed because it has been inactive for 60 days since being marked as stale."
26+
days-before-pr-stale: -1
27+
days-before-pr-close: -1
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)