Skip to content

Commit 5769ed5

Browse files
mhdawsonxtx1130
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 <mdawson@devrus.com> PR-URL: nodejs#42130 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 12566a3 commit 5769ed5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

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

Lines changed: 8 additions & 5 deletions
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)