Skip to content

Commit 853cbd9

Browse files
mhdawsonsxa
authored andcommitted
build: increase max ops for stale feature action
Set the limit to match the number used in the close stalled action. Required as not all eligeable stale features are being processed. Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42130 Reviewed-By: Mestery <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 41b6d9e commit 853cbd9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/close-stale-feature-requests.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Close stale feature requests
22
on:
33
workflow_dispatch:
4-
schedule:
5-
# Run every day at 1:00 AM UTC.
6-
- cron: 0 1 * * *
4+
inputs:
5+
daysBeforeStale:
6+
description: Idle number of days before marking feature requests stale
7+
required: true
8+
default: 906
9+
type: number
710

811
# yamllint disable rule:empty-lines
912
env:
@@ -36,13 +39,13 @@ jobs:
3639
- uses: actions/stale@v4
3740
with:
3841
repo-token: ${{ secrets.GITHUB_TOKEN }}
39-
days-before-stale: 906
42+
days-before-stale: ${{ github.event.input.daysBeforeStale }}
4043
days-before-close: 30
4144
stale-issue-label: stale
4245
close-issue-message: ${{ env.CLOSE_MESSAGE }}
4346
stale-issue-message: ${{ env.WARN_MESSAGE }}
4447
only-labels: feature request
4548
exempt-pr-labels: never-stale
4649
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
47-
operations-per-run: 30
50+
operations-per-run: 500
4851
remove-stale-when-updated: true

0 commit comments

Comments
 (0)