Skip to content

Commit c17f61d

Browse files
authored
Merge branch 'main' into darc-main-9120e3d3-21ba-42fb-86ad-3bdff34b1bfc
2 parents 564a23b + 3e3139e commit c17f61d

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/stale.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,10 @@ on:
33
schedule:
44
- cron: '19 4,16 * * *' # Twice daily at 19 minutes after the hour (random/uncommon time)
55

6-
workflow_dispatch:
7-
# Manual triggering through the GitHub UI, API, or CLI
8-
inputs:
9-
daysBeforeStale:
10-
required: true
11-
default: "1827"
12-
daysBeforeClose:
13-
required: true
14-
default: "30"
15-
operationsPerRun:
16-
required: true
17-
default: "4000"
18-
196
permissions:
207
actions: write # For managing the operation state cache
218
issues: write
9+
pull-requests: write
2210

2311
jobs:
2412
stale:
@@ -29,11 +17,10 @@ jobs:
2917
- uses: actions/stale@v9 # https://github.com/actions/stale/blob/v9/README.md
3018
with:
3119
ascending: true # Process the oldest issues first
32-
stale-issue-label: 'stale'
33-
stale-issue-message: "Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label."
34-
close-issue-message: "This issue will now be closed since it has been labeled 'stale' without activity for 30 days."
35-
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 2192) }} # Default to 6 years if not specified as input
36-
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }} # Default to 30 days if not specified as input
37-
days-before-pr-stale: -1 # Do not label PRs as 'stale'
38-
days-before-pr-close: -1 # Do not close PRs labeled as 'stale'
39-
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}}
20+
stale-issue-message: "Due to lack of recent activity, this issue has been labeled as 'Stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label."
21+
stale-pr-message: "Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label."
22+
days-before-issue-stale: 1827 # ~5 years
23+
days-before-issue-close: 30
24+
days-before-pr-stale: 180 # 6 months
25+
days-before-pr-close: 7
26+
operations-per-run: 4000

0 commit comments

Comments
 (0)