You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement Stale PR Handling and Update Stale Issue Handling (#2151)
* Implement Stale PR Handling and Update Stale Issue Handling
Use actions/stale to perform the following actions twice daily:
- Mark PRs that haven't been touched for 30 days as stale.
- Close PRs that have been marked stale for 7 days without an update.
Update stale issue handling:
- Mark issues that haven't been touched in 6 years as stale (increased from 1 year).
- Remove inputs section and directly specify values, as the inputs section was not being properly referenced and default values were being used.
* Allow manual triggering of the action.
- cron: '23 2,14 * * *'# Twice daily at 19 minutes after the hour (random/uncommon time)
5
-
6
-
workflow_dispatch:
7
-
# Manual triggering through the GitHub UI, API, or CLI
8
-
inputs:
9
-
daysBeforeStale:
10
-
required: true
11
-
default: "365"
12
-
daysBeforeClose:
13
-
required: true
14
-
default: "30"
15
-
operationsPerRun:
16
-
required: true
17
-
default: "4000"
4
+
- cron: '23 2,14 * * *'# Twice daily at 23 minutes after the hour (random/uncommon time)
5
+
workflow_dispatch: # Allows manual triggering
18
6
19
7
permissions:
20
8
actions: write # For managing the operation state cache
@@ -32,8 +20,10 @@ jobs:
32
20
stale-issue-label: 'stale'
33
21
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
22
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'
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."
24
+
close-pr-message: "This PR will now be closed since it has been labeled 'stale' without activity for 30 days."
0 commit comments