diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c0d0614bf2dc..b59342b2f3e9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/stale@v9 with: stale-issue-label: 'stale' - exempt-issue-labels: 'pinned,security,early-stages,"bug: confirmed",feedback,task' + exempt-issue-labels: 'pinned,security,early-stages,bug: confirmed,feedback,task' stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.' days-before-issue-stale: 30 days-before-issue-close: 5 @@ -20,6 +20,21 @@ jobs: days-before-pr-stale: 45 # This stops a PR from ever getting closed automatically. days-before-pr-close: -1 + # If an issue/PR has a milestone, it's exempt from being marked as stale. + exempt-all-milestones: true # For initial implementation - this stops any actual updates happening. # We can review the output and then decide how to proceed. I will own this action. debug-only: true + # How many API calls will we allow the action to make, essentially. + # Doco: https://github.com/actions/stale?tab=readme-ov-file#operations-per-run + operations-per-run: 150 + ######################################################################## + # The below are just default values, but populating here for reference # + ######################################################################## + # Automatically remove the stale label when the issues or the pull requests are updated + remove-stale-when-updated: true + # The reason used when closing issues. Valid values are `completed` and `not_planned`. + close-issue-reason: 'not_planned' + # If true, PRs currently in draft will not be marked as stale automatically. + # We can mark them stale (after `days-before-pr-stale`), though we don't auto-close. + exempt-draft-pr: false