File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Close stale PRs
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 9 * * 1' # Every Monday at 09:00 UTC
6+ workflow_dispatch :
7+
8+ jobs :
9+ stale :
10+ name : Mark and close stale PRs
11+ runs-on : ubuntu-latest
12+ permissions :
13+ pull-requests : write
14+
15+ steps :
16+ - uses : actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
17+ with :
18+ # Only touch PRs, not issues
19+ days-before-issue-stale : -1
20+ days-before-issue-close : -1
21+
22+ # Mark a PR stale after 1 year of no activity
23+ days-before-pr-stale : 365
24+ # Close it 2 weeks after the stale warning, if still no activity
25+ days-before-pr-close : 14
26+
27+ stale-pr-label : stale
28+ stale-pr-message : >
29+ This PR has had no activity for over a year. It will be closed in 2 weeks
30+ unless there is new activity or the `stale` label is removed.
31+ close-pr-message : >
32+ Closing this PR due to inactivity. Feel free to reopen if the work is still relevant.
33+
34+ # Exempt PRs whose authors are members or collaborators
35+ exempt-pr-labels : ' do-not-close,pinned'
Original file line number Diff line number Diff line change @@ -192,6 +192,9 @@ patterns:
192192 scenarios : PARAMETRIC
193193 .github/workflows/run-exotics.yml :
194194 scenario_groups : exotics
195+ .github/workflows/stale-prs.yml :
196+ scenario_groups : null
197+ libraries : null
195198 .github/* :
196199 scenario_groups : null
197200
You can’t perform that action at this time.
0 commit comments