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
+ actions : write
12
+ issues : write
13
+ pull-requests : write
14
+
15
+ jobs :
16
+ close-pending :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/stale@v9
20
+ with :
21
+ # GLOBAL ------------------------------------------------------------
22
+ # Exempt any PRs or issues already added to a milestone
23
+ exempt-all-milestones : true
24
+ # Days until issues or pull requests are labelled as stale
25
+ days-before-stale : 60
26
+
27
+ # ISSUES ------------------------------------------------------------
28
+ # Issues will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
29
+ days-before-issue-close : 30
30
+ stale-issue-message : >
31
+ Hello, this issue has been inactive for 60 days, so we're marking it as stale.
32
+ If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.
33
+ close-issue-message : >
34
+ Hello, as this issue has been inactive for 90 days, we're closing the issue.
35
+ If you would like to resume the discussion, please create a new issue.
36
+ exempt-issue-labels : keep-open
37
+
38
+ # PULL REQUESTS -----------------------------------------------------
39
+ # PRs will be closed after 90 days of inactive (60 to mark as stale + 30 to close)
40
+ days-before-pr-close : 30
41
+ stale-pr-message : >
42
+ Hello, this pull request has been inactive for 60 days, so we're marking it as stale.
43
+ 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.
44
+ close-pr-message : >
45
+ Hello, as this pull request has been inactive for 90 days, we're closing this pull request.
46
+ We always welcome contributions, and if you would like to continue, please open a new pull request.
47
+ exempt-pr-labels : keep-open
48
+
0 commit comments