1+ # Mark inactive issues and PRs as stale
2+ # GitHub action based on https://github.com/actions/stale
3+
4+ name : ' Close stale issues and PRs'
5+ on :
6+ schedule :
7+ # Execute every day
8+ - cron : ' 0 0 * * *'
9+
10+ permissions :
11+ issues : write
12+ pull-requests : write
13+
14+ jobs :
15+ close-pending :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/stale@v8
19+ with :
20+ # GLOBAL ------------------------------------------------------------
21+ # Exempt any PRs or issues already added to a milestone
22+ exempt-all-milestones : true
23+ # Days until issues or pull requests are labelled as stale
24+ days-before-stale : 60
25+
26+ # ISSUES ------------------------------------------------------------
27+ # Issues will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
28+ days-before-issue-close : 30
29+ stale-issue-message : >
30+ Hello, this issue has been inactive for 60 days, so we're marking it as stale.
31+ If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.
32+ close-issue-message : >
33+ Hello, as this issue has been inactive for 90 days, we're closing the issue.
34+ If you would like to resume the discussion, please create a new issue.
35+
36+ # PULL REQUESTS -----------------------------------------------------
37+ # PRs will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
38+ days-before-pr-close : 30
39+ stale-pr-message : >
40+ Hello, this pull request has been inactive for 60 days, so we're marking it as stale.
41+ If you would like to continue working on this pull request, please make an update within the next 30 days, or we'll close the pull request.
42+ close-pr-message : >
43+ Hello, as this pull request has been inactive for 90 days, we're closing this pull request.
44+ We always welcome contributions, and if you would like to continue, please open a new pull request.
0 commit comments