Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 9 additions & 19 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
name: 'Stale: Label and Close Issues'
on:
schedule:
- cron: '23 2,14 * * *' # Twice daily at 19 minutes after the hour (random/uncommon time)

workflow_dispatch:
# Manual triggering through the GitHub UI, API, or CLI
inputs:
daysBeforeStale:
required: true
default: "365"
daysBeforeClose:
required: true
default: "30"
operationsPerRun:
required: true
default: "4000"
- cron: '23 2,14 * * *' # Twice daily at 23 minutes after the hour (random/uncommon time)
workflow_dispatch: # Allows manual triggering

permissions:
actions: write # For managing the operation state cache
Expand All @@ -32,8 +20,10 @@ jobs:
stale-issue-label: 'stale'
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."
close-issue-message: "This issue will now be closed since it has been labeled 'stale' without activity for 30 days."
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 2192) }} # Default to 6 years if not specified as input
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }} # Default to 30 days if not specified as input
days-before-pr-stale: -1 # Do not label PRs as 'stale'
days-before-pr-close: -1 # Do not close PRs labeled as 'stale'
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}}
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."
close-pr-message: "This PR will now be closed since it has been labeled 'stale' without activity for 30 days."
days-before-stale: 2192 # 6 years
days-before-close: 30
days-before-pr-stale: 30
days-before-pr-close: 7
operations-per-run: 4000