Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduced frequency of GitHub stale action; add action write permissions #40533

Merged
merged 1 commit into from
Apr 30, 2024
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
7 changes: 4 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Stale: Label and Close Issues'
on:
schedule:
- cron: '19 * * * *' # Hourly at 19 minutes after the hour (random/uncommon time)
- cron: '19 4,16 * * *' # Twice daily at 19 minutes after the hour (random/uncommon time)

workflow_dispatch:
# Manual triggering through the GitHub UI, API, or CLI
Expand All @@ -14,9 +14,10 @@ on:
default: "30"
operationsPerRun:
required: true
default: "500"
default: "4000"

permissions:
actions: write # For managing the operation state cache
issues: write

jobs:
Expand All @@ -35,4 +36,4 @@ jobs:
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 || 500 )}}
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}}