This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Manage stale issues and PRs"
2
+ on :
3
+ # Chosen to be just before London wakes up and way past San Francisco's bedtime.
4
+ schedule :
5
+ - cron : " 0 8 * * 1-5" # This is in UTC.
6
+ # Do a dry-run (debug-only: true) whenever this workflow itself is changed.
7
+ pull_request :
8
+ paths :
9
+ - .github/workflows/manage-stale-issues-and-prs.yml
10
+ types :
11
+ - opened
12
+ - synchronize
13
+
14
+ permissions :
15
+ issues : write
16
+ pull-requests : write
17
+
18
+ jobs :
19
+ stale :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/stale@v6
23
+ with :
24
+ ascending : true # Spend API operations budget on older, more-likely-to-get-closed issues first
25
+ close-issue-message : " " # Leave no comment when closing
26
+ close-pr-message : " " # Leave no comment when closing
27
+ days-before-issue-stale : 365
28
+ days-before-pr-stale : 14
29
+ days-before-close : 7
30
+ debug-only : ${{ github.event_name == 'pull_request' }} # Dry-run when true.
31
+ exempt-all-milestones : true # Milestones can sometimes last a month, so exempt issues attached to a milestone.
32
+ exempt-issue-labels : blocked,do-not-close,security
33
+ exempt-pr-labels : blocked,do-not-close,security
34
+ # No actual changes get made in debug-only mode, so we can raise the operations ceiling.
35
+ operations-per-run : ${{ github.event_name == 'pull_request' && 1000 || 900}}
36
+ stale-issue-label : stale
37
+ stale-issue-message : " " # Leave no comment when marking as stale
38
+ stale-pr-label : stale
39
+ stale-pr-message : " " # Leave no comment when marking as stale
You can’t perform that action at this time.
0 commit comments